removed excess columns

This commit is contained in:
UncleJim 2024-01-08 02:38:35 +00:00
parent 3426a37d2d
commit acc3a63030
1 changed files with 6 additions and 0 deletions

View File

@ -593,6 +593,9 @@ class IDACSeason2(IDACBase):
if vs_info is not None:
vs_info = vs_info._asdict()
del vs_info["id"]
del vs_info["user"]
vs_info["invalid"] = vs_info["invalid"] + data.get("result")
vs_info["str_now"] = vs_info["str_now"] + data.get("win_flg") if data.get("win_flg") == 1 else 0
vs_info["str"] = vs_info["str"] if vs_info["str"] > vs_info["str_now"] else vs_info["str_now"]
@ -612,6 +615,9 @@ class IDACSeason2(IDACBase):
if vs_courses_info is not None:
for course in vs_courses_info:
course = course._asdict()
del vs_info["id"]
del vs_info["user"]
if course["course_id"] == data.get("course_id"):
course["vs_cnt"] += 1
course["vs_win"] += data.get("win_flg")