From b148e36e7f52ed67fc8601dd4174c31fb9711f04 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 22 Aug 2021 18:51:39 +0200 Subject: [PATCH] dfdf --- files/routes/admin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index ccef5fb32..a47f0f4dc 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -111,6 +111,7 @@ def admin_home(v): @app.post("/admin/monthly") @admin_level_required(6) def monthly(v): + _awards = [] for u in g.db.query(User).filter(User.patron > 0).all(): grant_awards = {} @@ -127,8 +128,6 @@ def monthly(v): thing = g.db.query(AwardRelationship).order_by(AwardRelationship.id.desc()).first().id - _awards = [] - for name in grant_awards: for count in range(grant_awards[name]):