forked from Dniel97/artemis
mai2: hotfix put_recent_rating
This commit is contained in:
parent
b29cb0fbaa
commit
8f9584c3d2
@ -746,9 +746,9 @@ class Mai2ProfileData(BaseData):
|
|||||||
return result.fetchone()
|
return result.fetchone()
|
||||||
|
|
||||||
def put_recent_rating(self, user_id: int, rr: Dict) -> Optional[int]:
|
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)
|
result = self.execute(conflict)
|
||||||
if result is None:
|
if result is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user