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)
file.write_text(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'
with open(f, "a+") as invalid_games_file:
invalid_games_file.writelines(
"{}, {}, {}\n".format(game_id, num_players, ", ".join(users))
"{}, {}, {}, {}\n".format(game_id, var_id, num_players, ", ".join(users))
)
return
# raise GameExportInvalidNumberOfPlayersError(game_id, num_players, users)