From a6c96c7b046c32a5d3a5eb6e53c8a2ca89fbbc05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Fri, 24 Nov 2023 15:09:21 +0100 Subject: [PATCH] some log output --- src/stats.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 "