From 04c708be8c9178904f0f002711cf29d07eff4f3b Mon Sep 17 00:00:00 2001 From: phantomlan Date: Wed, 15 Nov 2023 15:09:57 +0100 Subject: [PATCH 1/2] update item.py put_mission_point --- titles/ongeki/schema/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titles/ongeki/schema/item.py b/titles/ongeki/schema/item.py index 2c5b526..1214dac 100644 --- a/titles/ongeki/schema/item.py +++ b/titles/ongeki/schema/item.py @@ -533,8 +533,8 @@ class OngekiItemData(BaseData): return result.fetchall() 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["user"] = aime_id sql = insert(mission_point).values(**mission_point_data) conflict = sql.on_duplicate_key_update(**mission_point_data) From dcebc5c21a4290afc221b276208e06eec125801d Mon Sep 17 00:00:00 2001 From: phantomlan Date: Wed, 15 Nov 2023 15:09:57 +0100 Subject: [PATCH 2/2] update item.py put_mission_point --- titles/ongeki/schema/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titles/ongeki/schema/item.py b/titles/ongeki/schema/item.py index 2c5b526..1214dac 100644 --- a/titles/ongeki/schema/item.py +++ b/titles/ongeki/schema/item.py @@ -533,8 +533,8 @@ class OngekiItemData(BaseData): return result.fetchall() 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["user"] = aime_id sql = insert(mission_point).values(**mission_point_data) conflict = sql.on_duplicate_key_update(**mission_point_data)