1
0
mirror of synced 2024-11-14 09:47:46 +01:00

update item.py put_mission_point

This commit is contained in:
phantomlan 2023-11-15 15:09:57 +01:00
parent 22cf3f83a6
commit 04c708be8c

View File

@ -533,8 +533,8 @@ class OngekiItemData(BaseData):
return result.fetchall() return result.fetchall()
def put_mission_point(self, aime_id: int, version: int, mission_point_data: Dict) -> Optional[int]: def put_mission_point(self, aime_id: int, version: int, mission_point_data: Dict) -> Optional[int]:
mission_point_data["user"] = aime_id
mission_point_data["version"] = version mission_point_data["version"] = version
mission_point_data["user"] = aime_id
sql = insert(mission_point).values(**mission_point_data) sql = insert(mission_point).values(**mission_point_data)
conflict = sql.on_duplicate_key_update(**mission_point_data) conflict = sql.on_duplicate_key_update(**mission_point_data)