Fix profile crashing cause time.time doesnt exist inside jinja2

This commit is contained in:
csd4ni3l
2025-08-15 16:02:55 +02:00
parent 3cca37f814
commit c25927d002
2 changed files with 2 additions and 2 deletions

View File

@@ -289,7 +289,7 @@ def public_profile(username):
grass_touching_count, last_grass_touch_time = row
return render_template("profile.jinja2", username=username, grass_touching_count=grass_touching_count, last_grass_touch_time=last_grass_touch_time, your_account=False)
return render_template("profile.jinja2", username=username, grass_touching_count=grass_touching_count, last_grass_touch_time=last_grass_touch_time, now=time.time(), your_account=False)
@app.route("/login", methods=["GET", "POST"])
def login():