From 89d11ee759236f5582e743acfb4e7a339b7e1c4e Mon Sep 17 00:00:00 2001 From: Stefan Rupp Date: Fri, 22 May 2020 15:29:31 +0200 Subject: [PATCH] remove print() calls --- views/player.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/views/player.py b/views/player.py index 4354330..cad7c21 100644 --- a/views/player.py +++ b/views/player.py @@ -65,9 +65,7 @@ async def set_trump_color_rest(req, resp, player, trump): async def set_trump_color(player, color): p = int(player) - if p != the_game.players_ordered[-1].id: - print("error error error: not allowed") - else: + if p == the_game.players_ordered[-1].id: the_game.set_trump_color(color) await the_game.send_page_reload() @@ -83,7 +81,6 @@ async def websocket(ws): await play_card(p, c) elif fct == "setTrumpColor": player, color = args.split(':') - print("trump color choesen by {} is: {}".format(player, color)) await set_trump_color(player, color) except WebSocketDisconnect: