more descriptive success messages

master
Aevann1 2022-09-12 07:23:08 +02:00
parent 41dac65e9c
commit cc0f2059c3
3 changed files with 5 additions and 5 deletions

View File

@ -583,7 +583,7 @@ def badge_grant_post(v):
) )
g.db.add(ma) g.db.add(ma)
return render_template("admin/badge_grant.html", v=v, badge_types=badges, msg="Badge granted!") return render_template("admin/badge_grant.html", v=v, badge_types=badges, msg=f"{new_badge.name} Badge granted to @{user.username} successfully!")
@ -629,7 +629,7 @@ def badge_remove_post(v):
g.db.delete(badge) g.db.delete(badge)
return render_template("admin/badge_remove.html", v=v, badge_types=badges, msg="Badge removed!") return render_template("admin/badge_remove.html", v=v, badge_types=badges, msg=f"{badge.name} Badge removed from @{user.username} successfully!")
@app.get("/admin/users") @app.get("/admin/users")

View File

@ -471,6 +471,6 @@ def admin_userawards_post(v):
g.db.add(ma) g.db.add(ma)
if v.admin_level != 3: return render_template("admin/awards.html", awards=list(AWARDS3.values()), v=v) if v.admin_level != 3: return render_template("admin/awards.html", awards=list(AWARDS3.values()), v=v, msg=f"Awards granted to @{u.username} successfully!")
return render_template("admin/awards.html", awards=list(AWARDS.values()), v=v) return render_template("admin/awards.html", awards=list(AWARDS.values()), v=v, msg=f"Awards granted to @{u.username} successfully!")

View File

@ -224,7 +224,7 @@ def submit_contact(v):
return render_template("contact.html", v=v, msg="Your message has been sent.") return render_template("contact.html", v=v, msg="Your message has been sent to the admins!")
@app.get('/archives') @app.get('/archives')
def archivesindex(): def archivesindex():