forked from Hay1tsme/artemis
CHUNITHM & O.N.G.E.K.I.: Handle userRatingBase*List
This commit is contained in:
@ -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"}
|
||||
|
||||
|
Reference in New Issue
Block a user