forked from Hay1tsme/artemis
unindent
This commit is contained in:
@ -1092,28 +1092,28 @@ class OngekiBase:
|
|||||||
for x in upsert["userKopList"]:
|
for x in upsert["userKopList"]:
|
||||||
await self.data.profile.put_kop(user_id, x)
|
await self.data.profile.put_kop(user_id, x)
|
||||||
|
|
||||||
with self.data.session.begin():
|
with self.data.session.begin():
|
||||||
for rating_type in {
|
for rating_type in {
|
||||||
"userRatingBaseBestList",
|
"userRatingBaseBestList",
|
||||||
"userRatingBaseBestNewList",
|
"userRatingBaseBestNewList",
|
||||||
"userRatingBaseHotList",
|
"userRatingBaseHotList",
|
||||||
"userRatingBaseNextList",
|
"userRatingBaseNextList",
|
||||||
"userRatingBaseNextNewList",
|
"userRatingBaseNextNewList",
|
||||||
"userRatingBaseHotNextList",
|
"userRatingBaseHotNextList",
|
||||||
}:
|
}:
|
||||||
if rating_type not in upsert:
|
if rating_type not in upsert:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
await self.data.profile.put_profile_rating(
|
await self.data.profile.put_profile_rating(
|
||||||
user_id,
|
user_id,
|
||||||
self.version,
|
self.version,
|
||||||
rating_type,
|
rating_type,
|
||||||
upsert[rating_type],
|
upsert[rating_type],
|
||||||
)
|
)
|
||||||
|
|
||||||
if "userPlaylogList" in upsert:
|
if "userPlaylogList" in upsert:
|
||||||
for playlog in upsert["userPlaylogList"]:
|
for playlog in upsert["userPlaylogList"]:
|
||||||
await self.data.score.put_playlog(user_id, playlog)
|
await self.data.score.put_playlog(user_id, playlog)
|
||||||
|
|
||||||
return {"returnCode": 1, "apiName": "upsertUserAll"}
|
return {"returnCode": 1, "apiName": "upsertUserAll"}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user