This commit is contained in:
Aevann1 2021-08-22 18:50:59 +02:00
parent 6ec364d0b4
commit d157d3413c

View file

@ -111,8 +111,9 @@ def admin_home(v):
@app.post("/admin/monthly") @app.post("/admin/monthly")
@admin_level_required(6) @admin_level_required(6)
def monthly(v): def monthly(v):
grant_awards = {}
for u in g.db.query(User).filter(User.patron > 0).all(): for u in g.db.query(User).filter(User.patron > 0).all():
grant_awards = {}
if u.patron == 1: if u.patron == 1:
grant_awards["shit"] = 1 grant_awards["shit"] = 1
elif u.patron == 2: elif u.patron == 2:
@ -135,7 +136,7 @@ def monthly(v):
_awards.append(AwardRelationship( _awards.append(AwardRelationship(
id=thing, id=thing,
user_id=v.id, user_id=u.id,
kind=name kind=name
)) ))