forked from rDrama/rDrama
1
0
Fork 0

add missing db.close() and rollback

master
Aevann 2024-02-13 22:28:28 +02:00
parent 0ef0df679a
commit 667fec0dec
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,8 @@ def bar_position():
"FULL OUTER JOIN (SELECT id AS uid FROM users WHERE zombie != 0) as q2 "
"ON q1.uid = q2.uid")).one()[0]
total = max(total, 1)
db.rollback()
db.close()
return [int((vaxxed * 100) / total), int((zombie * 100) / total), vaxxed, zombie]