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: