From 77b22cd77dfc6b0865f7590bc3e0e8b03bc7f256 Mon Sep 17 00:00:00 2001 From: UncleJim Date: Sun, 19 Nov 2023 11:57:32 +0000 Subject: [PATCH] fix vs_info handles of getdata --- titles/idac/season2.py | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/titles/idac/season2.py b/titles/idac/season2.py index d1f6309..78c859a 100644 --- a/titles/idac/season2.py +++ b/titles/idac/season2.py @@ -716,22 +716,16 @@ class IDACSeason2(IDACBase): for vs in vs_info: vs_info_data.append( { - "battle_mode": 1, - "vs_cnt": 1, - "vs_win": vs["win_flg"], - "invalid": 0, - "str": 0, - "str_now": 0, - "lose_now": 0, - "vs_history": vs["vs_history"], + "battle_mode": vs_info["battle_mode"], + "vs_cnt": vs_info["vs_cnt"], + "vs_win": vs_info["vs_win"], + "invalid": vs_info["invalid"], + "str": vs_info["str"], + "str_now": vs_info["str_now"], + "lose_now": vs_info["lose_now"], + "vs_history": 0, "course_select_priority": 0, - "vsinfo_course_data": [ - { - "course_id": vs["course_id"], - "vs_cnt": 1, - "vs_win": vs["win_flg"], - } - ], + "vsinfo_course_data": vs_info["vsinfo_course_data"], } )