log variant id on num_player mismatch

This commit is contained in:
Maximilian Keßler 2023-07-06 23:49:33 +02:00
parent 5dbf8a5631
commit 71db1e9d26
Signed by: max
GPG key ID: BCC5A619923C0BA5
2 changed files with 2 additions and 2 deletions

View file

@ -209,4 +209,4 @@ def _download_json_files():
raise RuntimeError(err_msg) raise RuntimeError(err_msg)
file.write_text(response.text) file.write_text(response.text)
data[name] = json.loads(response.text) data[name] = json.loads(response.text)
return data['suits'], data['variants'] return data['suits'], data['variants']

View file

@ -182,7 +182,7 @@ def _process_game_row(game: Dict, var_id, export_all_games: bool = False):
f = platformdirs.user_data_dir(constants.APP_NAME, ensure_exists=True) + '/invalid_game_ids.txt' f = platformdirs.user_data_dir(constants.APP_NAME, ensure_exists=True) + '/invalid_game_ids.txt'
with open(f, "a+") as invalid_games_file: with open(f, "a+") as invalid_games_file:
invalid_games_file.writelines( invalid_games_file.writelines(
"{}, {}, {}\n".format(game_id, num_players, ", ".join(users)) "{}, {}, {}, {}\n".format(game_id, var_id, num_players, ", ".join(users))
) )
return return
# raise GameExportInvalidNumberOfPlayersError(game_id, num_players, users) # raise GameExportInvalidNumberOfPlayersError(game_id, num_players, users)