1
0
forked from Hay1tsme/artemis

mai2: hotfix put_recent_rating

This commit is contained in:
Hay1tsme 2023-07-01 02:07:19 -04:00
parent b29cb0fbaa
commit 8f9584c3d2

View File

@ -746,9 +746,9 @@ class Mai2ProfileData(BaseData):
return result.fetchone()
def put_recent_rating(self, user_id: int, rr: Dict) -> Optional[int]:
sql = insert(recent_rating).values(rr)
sql = insert(recent_rating).values(user=user_id, userRecentRatingList=rr)
conflict = sql.on_duplicate_key_update(rr)
conflict = sql.on_duplicate_key_update(userRecentRatingList=rr)
result = self.execute(conflict)
if result is None: