forked from Hay1tsme/artemis
move to async database
This commit is contained in:
@ -56,7 +56,7 @@ class WaccaReverse(WaccaLilyR):
|
||||
req = UserStatusGetDetailRequest(data)
|
||||
resp = UserStatusGetDetailResponseV4()
|
||||
|
||||
profile = self.data.profile.get_profile(req.userId)
|
||||
profile = await self.data.profile.get_profile(req.userId)
|
||||
if profile is None:
|
||||
self.logger.warning(f"Unknown profile {req.userId}")
|
||||
return resp.make()
|
||||
@ -64,15 +64,15 @@ class WaccaReverse(WaccaLilyR):
|
||||
self.logger.info(f"Get detail for profile {req.userId}")
|
||||
user_id = profile["user"]
|
||||
|
||||
profile_scores = self.data.score.get_best_scores(user_id)
|
||||
profile_items = self.data.item.get_items(user_id)
|
||||
profile_song_unlocks = self.data.item.get_song_unlocks(user_id)
|
||||
profile_options = self.data.profile.get_options(user_id)
|
||||
profile_favorites = self.data.profile.get_favorite_songs(user_id)
|
||||
profile_gates = self.data.profile.get_gates(user_id)
|
||||
profile_bingo = self.data.profile.get_bingo(user_id)
|
||||
profile_trophies = self.data.item.get_trophies(user_id)
|
||||
profile_tickets = self.data.item.get_tickets(user_id)
|
||||
profile_scores = await self.data.score.get_best_scores(user_id)
|
||||
profile_items = await self.data.item.get_items(user_id)
|
||||
profile_song_unlocks = await self.data.item.get_song_unlocks(user_id)
|
||||
profile_options = await self.data.profile.get_options(user_id)
|
||||
profile_favorites = await self.data.profile.get_favorite_songs(user_id)
|
||||
profile_gates = await self.data.profile.get_gates(user_id)
|
||||
profile_bingo = await self.data.profile.get_bingo(user_id)
|
||||
profile_trophies = await self.data.item.get_trophies(user_id)
|
||||
profile_tickets = await self.data.item.get_tickets(user_id)
|
||||
|
||||
if profile["gate_tutorial_flags"] is not None:
|
||||
for x in profile["gate_tutorial_flags"]:
|
||||
@ -309,17 +309,17 @@ class WaccaReverse(WaccaLilyR):
|
||||
req = UserStatusCreateRequest(data)
|
||||
resp = await super().handle_user_status_create_request(data)
|
||||
|
||||
self.data.item.put_item(
|
||||
await self.data.item.put_item(
|
||||
req.aimeId, WaccaConstants.ITEM_TYPES["navigator"], 310001
|
||||
) # Added reverse
|
||||
self.data.item.put_item(
|
||||
await self.data.item.put_item(
|
||||
req.aimeId, WaccaConstants.ITEM_TYPES["navigator"], 310002
|
||||
) # Added reverse
|
||||
|
||||
self.data.item.put_item(
|
||||
await self.data.item.put_item(
|
||||
req.aimeId, WaccaConstants.ITEM_TYPES["touch_effect"], 312000
|
||||
) # Added reverse
|
||||
self.data.item.put_item(
|
||||
await self.data.item.put_item(
|
||||
req.aimeId, WaccaConstants.ITEM_TYPES["touch_effect"], 312001
|
||||
) # Added reverse
|
||||
|
||||
|
Reference in New Issue
Block a user