From ec1b1c852b79a7d35c976c6f16f63009f6763b14 Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 17 May 2023 05:48:32 -0400 Subject: [PATCH] Fix reporting issue for game results --- Client/Client.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Client/Client.py b/Client/Client.py index b289485..23aca49 100644 --- a/Client/Client.py +++ b/Client/Client.py @@ -1008,12 +1008,13 @@ def run_and_parse_cutechess(arguments, workload, concurrency, command, cutechess stats = wld + [crashes, timelosses] status = server_report_results(arguments, workload, stats) + # Reset the reporting since this report was a success + crashes = timelosses = 0 + sent = score[::] + except: # Failed to connect, but we can delay the reports until later print('[NOTE] Unable To Reach Server'); - crashes = timelosses = 0 - sent = score[::] - continue # Check for openbench.exit, or server instructing us to exit if os.path.isfile('openbench.exit') or 'stop' in status: