1
0
forked from Hay1tsme/artemis

mai2: fix put_recent_rating

This commit is contained in:
Hay1tsme 2023-07-01 02:06:00 -04:00
parent d9a92f5865
commit b29cb0fbaa

View File

@ -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(rr)
conflict = sql.on_duplicate_key_update(**rr) conflict = sql.on_duplicate_key_update(rr)
result = self.execute(conflict) result = self.execute(conflict)
if result is None: if result is None: