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):
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user