master
Aevann1 2021-09-17 23:43:42 +02:00
parent 2350896779
commit a01f9a082e
1 changed files with 0 additions and 14 deletions

View File

@ -84,20 +84,6 @@ def shop(v):
return render_template("settings_shop.html", owned=owned, awards=list(AWARDS.values()), v=v)
@app.get("/awards")
@auth_required
def get_awards(v):
return_value = list(AWARDS.values())
user_awards = v.awards
for val in return_value:
val['owned'] = user_awards.filter_by(kind=val['kind'], submission_id=None, comment_id=None).count()
return jsonify(return_value)
@app.post("/buy/<award>")
@auth_required
def buy(v, award):