From cf0c34cafb77b54816766e21d076b3614d078d77 Mon Sep 17 00:00:00 2001 From: phantomlan Date: Sun, 26 Nov 2023 00:12:23 +0100 Subject: [PATCH] fixup technical challenge event --- titles/ongeki/schema/item.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/titles/ongeki/schema/item.py b/titles/ongeki/schema/item.py index 1214dac..55b4c68 100644 --- a/titles/ongeki/schema/item.py +++ b/titles/ongeki/schema/item.py @@ -639,8 +639,9 @@ class OngekiItemData(BaseData): return None return result.fetchall() - def put_tech_event(self, aime_id: int, tech_event_data: Dict) -> Optional[int]: + def put_tech_event(self, aime_id: int, version: int, tech_event_data: Dict) -> Optional[int]: tech_event_data["user"] = aime_id + tech_event_data["version"] = version sql = insert(tech_event).values(**tech_event_data) conflict = sql.on_duplicate_key_update(**tech_event_data) @@ -651,7 +652,7 @@ class OngekiItemData(BaseData): return None return result.lastrowid - def put_tech_event_ranking(self, version: int, aime_id: int, tech_event_data: Dict) -> Optional[int]: + def put_tech_event_ranking(self, aime_id: int, version: int, tech_event_data: Dict) -> Optional[int]: tech_event_data["user"] = aime_id tech_event_data["version"] = version tech_event_data.pop("isRankingRewarded")