Blockdata var already converted to _asdict()

This commit is contained in:
Shawn Grigson 2023-01-17 17:17:59 -06:00
parent ede2918740
commit 8d3b9da144
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ def update_known_block(token: str, host: str, block: DomainBlock):
response = requests.put(url, response = requests.put(url,
headers=requests_headers(token), headers=requests_headers(token),
json=blockdata._asdict(), json=blockdata,
timeout=REQUEST_TIMEOUT timeout=REQUEST_TIMEOUT
) )
if response.status_code != 200: if response.status_code != 200: