Add now arg to fix time.time issue to profile parameters in your own account as well

This commit is contained in:
csd4ni3l
2025-08-15 16:04:19 +02:00
parent c25927d002
commit 9ecb9b8c9a

View File

@@ -272,7 +272,7 @@ def profile():
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=True)
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=True)
@app.route("/profile/<username>")
def public_profile(username):