From e2a5147dc63eb0f95596282a284b213fde415efe Mon Sep 17 00:00:00 2001 From: Giulio Date: Mon, 21 Dec 2020 00:35:05 +0100 Subject: [PATCH] fix getcard --- backend/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/__init__.py b/backend/__init__.py index bdf4dec..45fee6f 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -240,7 +240,7 @@ def chat_message(sid, msg): cmd = msg.split() if len(cmd) >= 2: cards = cs.get_starting_deck(ses.game.expansions) - ses.hand.append = [c for c in cards if c.name == ' '.join(cmd[1:])][0] + ses.hand.append([c for c in cards if c.name == ' '.join(cmd[1:])][0]) ses.notify_self() elif '/gameinfo' in msg: sio.emit('chat_message', room=sid, data={'color': f'','text':f'info: {ses.game.__dict__}'})