dfdf
This commit is contained in:
parent
6ec364d0b4
commit
d157d3413c
1 changed files with 12 additions and 11 deletions
|
@ -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
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue