forked from test/mau_mau_bot
for-variable
This commit is contained in:
parent
ad2ae0a752
commit
2a52f6e36c
1 changed files with 3 additions and 3 deletions
|
@ -48,9 +48,9 @@ class GameManager(object):
|
||||||
self.chatid_games[chat_id] = list()
|
self.chatid_games[chat_id] = list()
|
||||||
|
|
||||||
# remove old games
|
# remove old games
|
||||||
for game in list(self.chatid_games[chat_id]):
|
for g in list(self.chatid_games[chat_id]):
|
||||||
if not game.players:
|
if not g.players:
|
||||||
self.chatid_games[chat_id].remove(game)
|
self.chatid_games[chat_id].remove(g)
|
||||||
|
|
||||||
self.chatid_games[chat_id].append(game)
|
self.chatid_games[chat_id].append(game)
|
||||||
return game
|
return game
|
||||||
|
|
Loading…
Reference in a new issue