Added past round event data for season 1

This commit is contained in:
UncleJim committed 2024-01-08 03:09:17 +00:00
1 parent a883450e5c
commit 3dd23d4b53
1 file changed
+15
+15
View File
@@ -1910,6 +1910,21 @@ class IDACSeason2(IDACBase):
"past_season_timetrial_data": past_timetrial_data,
}
def handle_user_getpastseasonrounddata_request(self, data: Dict, headers: Dict):
user_id = headers["session"]
season_id = data.get("season_id")
# so to get the season 1 data just subtract 1 from the season id
past_timetrial_data = self._generate_time_trial_data(season_id - 1, user_id)
# TODO: get the current season timetrial data somehow, because after requesting
# GetPastSeasonTAData the game will NOT request GetTAData?!
return {
"status_code": "0",
"season_id": season_id,
"past_season_round_event_data": [{"count": 0,"win": 0,"rank": 0,"area_rank": 0,"point": 0,"total_round_point": 0,"round_name": "DAC稼働記念 1stラウンド","round_id": 0},{"count": 0,"win": 0,"rank": 0,"area_rank": 0,"point": 0,"total_round_point": 0,"round_name": "シーズン1 2ndラウンド","round_id": 1},{"count": 0,"win": 0,"rank": 0,"area_rank": 0,"point": 0,"total_round_point": 0,"round_name": "シーズン1 3rdラウンド","round_id": 2},{"count": 0,"win": 0,"rLine truncated
}
def handle_user_gettadata_request(self, data: Dict, headers: Dict):
user_id = headers["session"]