gold_readbag and russian

This commit is contained in:
hibiki
2021-06-15 10:57:08 +08:00
parent 95209093de
commit ea620fdae9
125 changed files with 2106 additions and 1244 deletions
+2 -3
View File
@@ -43,12 +43,11 @@ class LevelUser(db.Model):
return False
@classmethod
async def delete_level(cls, user_qq: int, group_id: int, for_update: bool = False) -> 'bool':
async def delete_level(cls, user_qq: int, group_id: int) -> 'bool':
query = cls.query.where(
(cls.user_qq == user_qq) & (cls.group_id == group_id)
)
if for_update:
query = query.with_for_update()
query = query.with_for_update()
user = await query.gino.first()
if user is None:
return False