mirror of
https://github.com/csd4ni3l/grass_touching_captcha.git
synced 2026-01-01 12:33:45 +01:00
fix check_grass_touching_bans crashing due to not using app context
This commit is contained in:
1
main.py
1
main.py
@@ -54,6 +54,7 @@ def close_connection(exception):
|
|||||||
|
|
||||||
def check_grass_touching_bans():
|
def check_grass_touching_bans():
|
||||||
while True:
|
while True:
|
||||||
|
with app.app_context():
|
||||||
cur = get_db().cursor()
|
cur = get_db().cursor()
|
||||||
|
|
||||||
cur.execute("SELECT username, last_grass_touch_time FROM Users")
|
cur.execute("SELECT username, last_grass_touch_time FROM Users")
|
||||||
|
|||||||
Reference in New Issue
Block a user