From ddc2761da9906bc4b4119feed369a96c5eb9d387 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 18 Sep 2021 19:59:41 +0200 Subject: [PATCH] fddfs --- files/routes/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/admin.py b/files/routes/admin.py index ef812a1ec..623f70bb3 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -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 )