Strategická: Jeden json stačí
This commit is contained in:
parent
f44651d628
commit
12118ff26c
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
import logging
|
import logging
|
||||||
import json
|
|
||||||
import requests
|
import requests
|
||||||
from typing import Optional, Tuple
|
from typing import Optional, Tuple
|
||||||
|
|
||||||
|
@ -54,7 +53,7 @@ def send_turn(turn: dict, round: int, args) -> bool:
|
||||||
"token": args.token,
|
"token": args.token,
|
||||||
"round": round
|
"round": round
|
||||||
},
|
},
|
||||||
json=json.dumps(turn)
|
json=turn
|
||||||
)
|
)
|
||||||
except requests.exceptions.RequestException as e:
|
except requests.exceptions.RequestException as e:
|
||||||
logger.warning(f"Request error: {e}")
|
logger.warning(f"Request error: {e}")
|
||||||
|
|
Loading…
Reference in a new issue