forked from MarseyWorld/MarseyWorld
fds
parent
2350896779
commit
a01f9a082e
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue