From deb09e5c749e3353c927d7fe94bbd35f25ff85ee Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 11 Apr 2021 18:03:11 +0200 Subject: dprint yapf continuation align style edit --- api/game/cleanup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api/game/cleanup.py') diff --git a/api/game/cleanup.py b/api/game/cleanup.py index 5b705d2..cc0aab8 100644 --- a/api/game/cleanup.py +++ b/api/game/cleanup.py @@ -7,8 +7,8 @@ import time def cleanup(): now = int(time.time() * 1000) old_games = cursor.execute( - "select game_id from games where (status = \"wait_for_opponent\" or status = \"in_progress\") and last_activity < ?", - [now - 5 * 60 * 1e3] + "select game_id from games where (status = \"wait_for_opponent\" or status = \"in_progress\") and last_activity < ?", + [now - 5 * 60 * 1e3] ).fetchall() for game_id in old_games: cursor.execute("delete from games where game_id = ?", [game_id[0]]) @@ -16,7 +16,7 @@ def cleanup(): def set_interval( - func, sec + func, sec ): # https://stackoverflow.com/questions/2697039/python-equivalent-of-setinterval def func_wrapper(): set_interval(func, sec) -- cgit v1.2.3