is this why you're supposed to quote conditions?

This commit is contained in:
2024-06-24 09:49:31 +07:00
parent e4ad50fb0c
commit 549fd88b32

View File

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