mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-22 01:10:28 +00:00
sendGraph: Use r.text for comparing response
Missed this use of r.content in previous commit. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
parent
7fd5de8c77
commit
dc733a9b45
@ -208,7 +208,7 @@ def send_graph(nodes, edges):
|
||||
payload = {'data': json_graph, 'mail': your_mail, 'version': 2}
|
||||
r = requests.post(url, data=payload)
|
||||
|
||||
if r.content == 'OK':
|
||||
if r.text == 'OK':
|
||||
print('Done!')
|
||||
else:
|
||||
print('Error: {:s}'.format(r.text))
|
||||
|
Loading…
Reference in New Issue
Block a user