remove spectators from gamesaves

This commit is contained in:
Alberto Xamin 2023-01-23 14:39:59 +00:00
parent 5a0abfea54
commit 1b8690a5c6
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -825,6 +825,7 @@ if __name__ == '__main__':
with open('./save/games.pickle', 'rb') as file:
games = pickle.load(file)
for g in games:
g.spectators = []
for p in g.players:
if p.sid != 'bot':
sio.start_background_task(p.disconnect)