From 549fd88b3264b45d6e483efe8d2d15dcb7325385 Mon Sep 17 00:00:00 2001 From: beerpsi Date: Mon, 24 Jun 2024 09:49:31 +0700 Subject: [PATCH] is this why you're supposed to quote conditions? --- core/data/schema/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/data/schema/user.py b/core/data/schema/user.py index eda31fa..b26e51d 100644 --- a/core/data/schema/user.py +++ b/core/data/schema/user.py @@ -144,7 +144,7 @@ class UserData(BaseData): sql = game_locks.select( (game_locks.c.user == user_id) & (game_locks.c.game == game) - & func.timestampdiff(text("SECOND"), func.now(), game_locks.c.expires_at) > 0) + & (func.timestampdiff(text("SECOND"), func.now(), game_locks.c.expires_at) > 0)) result = await self.execute(sql) if result: