From ecb4a56047af0eaa95ceecc9cfdf54963d3c36a7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 30 May 2022 01:01:40 +0200 Subject: [PATCH] fixed global variable bug in /stats --- files/routes/static.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index c17a9b272..256ccfe00 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -140,9 +140,9 @@ def stats(site=None): stats.update(stats2) - bots = g.db.query(User).filter(User.id.in_(bots)) + accs = g.db.query(User).filter(User.id.in_(bots)) - for u in bots: + for u in accs: g.db.add(u) if u.patron_utc and u.patron_utc < time.time():