remove print() calls
This commit is contained in:
parent
4037822446
commit
89d11ee759
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user