mai2: put_recent_rating final fix
This commit is contained in:
parent
8f9584c3d2
commit
3e9cec3a20
@ -748,7 +748,7 @@ class Mai2ProfileData(BaseData):
|
|||||||
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(user=user_id, userRecentRatingList=rr)
|
sql = insert(recent_rating).values(user=user_id, userRecentRatingList=rr)
|
||||||
|
|
||||||
conflict = sql.on_duplicate_key_update(userRecentRatingList=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