don't save hidden games

This commit is contained in:
Alberto Xamin 2023-01-22 11:52:34 +00:00
parent fee3171e8a
commit 87dcbedc29
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -814,7 +814,7 @@ def save_games():
sio.sleep(2)
if not save_lock:
with open('games.pickle', 'wb') as f:
pickle.dump([g for g in games if g.started and not g.is_replay], f)
pickle.dump([g for g in games if g.started and not g.is_replay and not g.is_hidden], f)
if __name__ == '__main__':
if os.path.exists('games.pickle'):