Update titles/idac/season2.py

This commit is contained in:
UncleJim 2023-11-20 04:42:28 +00:00
parent df9ba9beda
commit 4d5823a4f7

View File

@ -588,10 +588,10 @@ class IDACSeason2(IDACBase):
user_id, self.version, updated_stock_data user_id, self.version, updated_stock_data
) )
def _update_vs_info(self, user_id: int, battle_mode: int, data: Dict) -> Dict: def _update_vs_info(self, user_id: int, battle_mode: int, data: Dict) -> Dict:
vs_info = self.data.item.get_vs_infos_by_mode(user_id, battle_mode) vs_info = self.data.item.get_vs_infos_by_mode(user_id, battle_mode)
if vs_info is not None: if vs_info is not None:
vs_info["vs_cnt"] += 1 vs_info["vs_cnt"] += 1
vs_info["vs_win"] = vs_info["vs_win"] + data.get("win_flg") vs_info["vs_win"] = vs_info["vs_win"] + data.get("win_flg")
vs_info["invalid"] = vs_info["invalid"] + data.get("result") vs_info["invalid"] = vs_info["invalid"] + data.get("result")