fix achievements not shown in in profile and also make profile dark mode

This commit is contained in:
csd4ni3l
2025-08-15 16:57:33 +02:00
parent eef9e5eef1
commit d66290d935
2 changed files with 14 additions and 12 deletions

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=float(last_grass_touch_time), now=time.time(), your_account=True)
return render_template("profile.jinja2", username=username, grass_touching_count=grass_touching_count, last_grass_touch_time=float(last_grass_touch_time), now=time.time(), achievements=ACHIEVEMENTS, your_account=True)
@app.route("/profile/<username>")
def public_profile(username):
@@ -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=float(last_grass_touch_time), now=time.time(), your_account=False)
return render_template("profile.jinja2", username=username, grass_touching_count=grass_touching_count, last_grass_touch_time=float(last_grass_touch_time), now=time.time(), achievements=ACHIEVEMENTS, your_account=False)
@app.route("/login", methods=["GET", "POST"])
def login():