From 43927b63de63512e520ed58447b47d7400d4699d Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Fri, 30 Aug 2024 07:27:38 +0200 Subject: [PATCH] Generalize match for crashes and time_losses --- worker/games.py | 4 ++-- worker/sri.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/worker/games.py b/worker/games.py index 486fef000..647577db6 100644 --- a/worker/games.py +++ b/worker/games.py @@ -933,10 +933,10 @@ def shorten_hash(match): # Parse line like this: # Finished game 1 (stockfish vs base): 0-1 {White disconnects} - if "disconnects" in line or "connection stalls" in line: + if "disconnect" in line or "stall" in line: result["stats"]["crashes"] += 1 - if "on time" in line: + if "on time" in line or "timeout" in line: result["stats"]["time_losses"] += 1 # fastchess WLD and pentanomial output parsing diff --git a/worker/sri.txt b/worker/sri.txt index bb2013791..1afc6c3d1 100644 --- a/worker/sri.txt +++ b/worker/sri.txt @@ -1 +1 @@ -{"__version": 242, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "gZThu9RSMeBHdNNAxVIMJ5iqJTXy/KdIWGoljEXhvuSp+ouqQiQTUJUj3YrSPziM", "games.py": "XXu26PHwvst2h+74QTayQqpbMU+6pY/W34EOgrwDx3zlqBmyTeqfGIYan0OM4jub"} +{"__version": 242, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "gZThu9RSMeBHdNNAxVIMJ5iqJTXy/KdIWGoljEXhvuSp+ouqQiQTUJUj3YrSPziM", "games.py": "lGZdyKzIl9NL7NcjRaWEiSON6nHG0iu4OF+eGmDjV0FwfgashYOt9C5usoMJrwkR"}