fixed global variable bug in /stats

master
Aevann1 2022-05-30 01:01:40 +02:00
parent 08dfef97a3
commit ecb4a56047
1 changed files with 2 additions and 2 deletions

View File

@ -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():