Browse Source

Strategická: Jeden json stačí

master
David Klement 2 years ago
parent
commit
12118ff26c
  1. 3
      klient/client.py

3
klient/client.py

@ -1,5 +1,4 @@
import logging
import json
import requests
from typing import Optional, Tuple
@ -54,7 +53,7 @@ def send_turn(turn: dict, round: int, args) -> bool:
"token": args.token,
"round": round
},
json=json.dumps(turn)
json=turn
)
except requests.exceptions.RequestException as e:
logger.warning(f"Request error: {e}")

Loading…
Cancel
Save