forked from Hay1tsme/artemis
extend the lock when upserting
This commit is contained in:
@ -505,7 +505,7 @@ class ChuniBase:
|
||||
user_fav_item_list = []
|
||||
|
||||
# still needs to be implemented on WebUI
|
||||
# 1: Music, 2: User, 3: Character
|
||||
# 1: Music, 2: Rival, 3: Character, 4: ???
|
||||
fav_list = await self.data.item.get_all_favorites(
|
||||
data["userId"], self.version, fav_kind=int(data["kind"])
|
||||
)
|
||||
@ -839,6 +839,8 @@ class ChuniBase:
|
||||
|
||||
self.logger.info("Guest play from place ID %d, ignoring.", place_id)
|
||||
return {"returnCode": "1"}
|
||||
|
||||
await self.data.user.extend_lock_for_game(int(user_id), self.game)
|
||||
|
||||
with self.data.session.begin():
|
||||
if "userData" in upsert:
|
||||
|
Reference in New Issue
Block a user