mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-08 15:38:33 +01:00
implement live game logging
This commit is contained in:
@@ -102,6 +102,10 @@ def singleEvent():
|
||||
print("Removed orphaned session file: {}".format(fullPath), file=sys.stderr)
|
||||
os.remove(fullPath)
|
||||
|
||||
# update live stats #
|
||||
if jsonDict["etype"] == "active_players":
|
||||
db.logLiveState(jsonDict, session)
|
||||
|
||||
if jsonDict["etype"] == ROUND_END_IDENT:
|
||||
events = []
|
||||
with open(fullPath, "r") as f:
|
||||
|
||||
Reference in New Issue
Block a user