forked from Hay1tsme/artemis
i am stupid
This commit is contained in:
@ -177,6 +177,6 @@ class UserData(BaseData):
|
||||
await self.execute(sql)
|
||||
|
||||
async def extend_lock_for_game(self, user_id: int, game: str):
|
||||
sql = game_locks.update().where(user=user_id, game=game).values(expires_at=func.date_add(func.now(), text("INTERVAL 15 MINUTE")))
|
||||
sql = game_locks.update().where((game_locks.c.user == user_id) & (game_locks.c.game == game)).values(expires_at=func.date_add(func.now(), text("INTERVAL 15 MINUTE")))
|
||||
|
||||
await self.execute(sql)
|
||||
|
Reference in New Issue
Block a user