5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-22 12:50:27 +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:
Johannes Löthberg 2015-11-21 14:49:40 +01:00
parent 7fd5de8c77
commit dc733a9b45

View File

@ -208,7 +208,7 @@ def send_graph(nodes, edges):
payload = {'data': json_graph, 'mail': your_mail, 'version': 2} payload = {'data': json_graph, 'mail': your_mail, 'version': 2}
r = requests.post(url, data=payload) r = requests.post(url, data=payload)
if r.content == 'OK': if r.text == 'OK':
print('Done!') print('Done!')
else: else:
print('Error: {:s}'.format(r.text)) print('Error: {:s}'.format(r.text))