master
Aevann1 2021-09-05 11:45:53 +02:00
parent 19d1dd882e
commit 2d169789b5
2 changed files with 1 additions and 23 deletions

View File

@ -844,12 +844,3 @@ def settings_title_change(v):
g.db.add(v)
return redirect("/settings/profile")
@app.post("/settings/badges")
@auth_required
@validate_formkey
def settings_badge_recheck(v):
v.refresh_selfset_badges()
return {"message":"Badges Refreshed"}

View File

@ -586,19 +586,6 @@
</div>
<div class="body d-lg-flex border-bottom">
<label class="text-black w-lg-25">Badges</label>
<div class="w-lg-100">
<p><a href="/badges">Profile badges</a> show off all of your site achievements. If your badges look not quite up to date, use this tool to refresh them.</p>
<div class="d-flex">
<a class="btn btn-primary ml-auto" id="badgeUpdate" href="javascript:void(0)" onclick="post_toast('/settings/badges')">Refresh badges</a>
</div>
</div>
</div>
<div class="d-lg-flex border-bottom">
<div class="title w-lg-25">