remotes/1693045480750635534/spooky-22
Aevann1 2021-09-18 19:59:41 +02:00
parent 991f64ff48
commit ab5b86dd76
1 changed files with 2 additions and 0 deletions

View File

@ -195,6 +195,7 @@ def monthly(v):
@app.get("/admin/monthly2")
@admin_level_required(6)
def monthly2(v):
thing = g.db.query(AwardRelationship).order_by(AwardRelationship.id.desc()).first().id
t = time.time()
for u in g.db.query(User).options(lazyload('*')).filter(User.patron > 0).all():
grant_awards = {}
@ -223,6 +224,7 @@ def monthly2(v):
for count in range(grant_awards[name]):
a = AwardRelationship(
id=thing,
user_id=u.id,
kind=name
)