remove print() calls

This commit is contained in:
Stefan Rupp 2020-05-22 15:29:31 +02:00
parent 4037822446
commit 89d11ee759

View File

@ -65,9 +65,7 @@ async def set_trump_color_rest(req, resp, player, trump):
async def set_trump_color(player, color): async def set_trump_color(player, color):
p = int(player) p = int(player)
if p != the_game.players_ordered[-1].id: if p == the_game.players_ordered[-1].id:
print("error error error: not allowed")
else:
the_game.set_trump_color(color) the_game.set_trump_color(color)
await the_game.send_page_reload() await the_game.send_page_reload()
@ -83,7 +81,6 @@ async def websocket(ws):
await play_card(p, c) await play_card(p, c)
elif fct == "setTrumpColor": elif fct == "setTrumpColor":
player, color = args.split(':') player, color = args.split(':')
print("trump color choesen by {} is: {}".format(player, color))
await set_trump_color(player, color) await set_trump_color(player, color)
except WebSocketDisconnect: except WebSocketDisconnect: