CHUNITHM & O.N.G.E.K.I.: Handle userRatingBase*List

This commit is contained in:
2024-03-13 15:48:47 +07:00
parent 346f82a32a
commit 5c48edc86b
5 changed files with 272 additions and 5 deletions

View File

@ -924,6 +924,27 @@ class ChuniBase:
if "userRecentPlayerList" in upsert: # TODO: Seen in Air, maybe implement sometime
for rp in upsert["userRecentPlayerList"]:
pass
if "userRatingBaseList" in upsert:
await self.data.profile.put_profile_rating_best(
user_id,
self.version,
upsert["userRatingBaseList"]
)
if "userRatingBaseHotList" in upsert:
await self.data.profile.put_profile_rating_hot(
user_id,
self.version,
upsert["userRatingBaseHotList"]
)
if "userRatingBaseNextList" in upsert:
await self.data.profile.put_profile_rating_next(
user_id,
self.version,
upsert["userRatingBaseNextList"]
)
return {"returnCode": "1"}