forked from Hanabi/hanabi-league
remove prints
This commit is contained in:
parent
a529a72388
commit
7a44378e9e
1 changed files with 0 additions and 4 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue