diff --git a/src/stats.py b/src/stats.py index 2531742..dfa80d8 100644 --- a/src/stats.py +++ b/src/stats.py @@ -73,6 +73,7 @@ def analyze_replay(instance: hanab_game.HanabiInstance, actions: List[hanab_game def analyze_game_and_store_stats(game_id: int): + logger.verbose("Analysing game {} for BDRs and lost crits".format(game_id)) instance, actions = games_db_interface.load_game(game_id) analysis = analyze_replay(instance, actions) @@ -88,6 +89,11 @@ def analyze_game_and_store_stats(game_id: int): def analyze_all_games(): + """ + Runs analysis on replays of all games + @warning: This assumes that detailed game data has been fetched from the server already + """ + logger.info("Analysing replays of all games.") cur = conn_manager.get_new_cursor() cur.execute( "SELECT id FROM games "