fix chat message

This commit is contained in:
Alberto Xamin 2020-11-25 22:27:07 +01:00
parent 7cd89837b8
commit e0a23340ca
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -42,7 +42,7 @@ class Card(ABC):
return super().__str__()
def play_card(self, player, against):
contro = f'contro {against}' if against else ''
contro = f' contro {against}' if against else ''
player.sio.emit('chat_message', room=player.game.name,
data=f'{player.name} ha giocato {self.name}{contro}.')
return True