remove prints

This commit is contained in:
Maximilian Keßler 2023-12-26 17:28:50 +01:00
parent a529a72388
commit 7a44378e9e
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -48,7 +48,6 @@ def fetch_games_for_player(username: str, first_game_id: int, last_game_id: Opti
url = "https://hanab.live/api/v1/history-full/{}?start={}".format(username, first_game_id) url = "https://hanab.live/api/v1/history-full/{}?start={}".format(username, first_game_id)
if last_game_id is not None: if last_game_id is not None:
url += "&end={}".format(last_game_id) url += "&end={}".format(last_game_id)
print(url)
response = session.get(url) response = session.get(url)
if not response.status_code == 200: if not response.status_code == 200:
err_msg = "Failed to fetch games for username {}, requested URL {}".format(username, url) err_msg = "Failed to fetch games for username {}, requested URL {}".format(username, url)
@ -206,9 +205,6 @@ def detailed_fetch_game(game_id: int) -> bool:
players = game_json["players"] players = game_json["players"]
games = fetch_games_for_player(players[0], game_id, game_id) games = fetch_games_for_player(players[0], game_id, game_id)
if not len(games) == 1:
print(games)
exit(1)
assert len(games) == 1 assert len(games) == 1
game_entry = process_game_entry(games[0]) game_entry = process_game_entry(games[0])
if game_entry is None: if game_entry is None: