remove spectators from gamesaves
This commit is contained in:
parent
5a0abfea54
commit
1b8690a5c6
@ -825,6 +825,7 @@ if __name__ == '__main__':
|
|||||||
with open('./save/games.pickle', 'rb') as file:
|
with open('./save/games.pickle', 'rb') as file:
|
||||||
games = pickle.load(file)
|
games = pickle.load(file)
|
||||||
for g in games:
|
for g in games:
|
||||||
|
g.spectators = []
|
||||||
for p in g.players:
|
for p in g.players:
|
||||||
if p.sid != 'bot':
|
if p.sid != 'bot':
|
||||||
sio.start_background_task(p.disconnect)
|
sio.start_background_task(p.disconnect)
|
||||||
|
Loading…
Reference in New Issue
Block a user