mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 08:17:13 +03:00
Prettify fix for #44.
This commit is contained in:
parent
a967748d7c
commit
786f34dac1
2
eddn.py
2
eddn.py
@ -36,7 +36,7 @@ def send(cmdr, msg):
|
||||
}
|
||||
msg['message']['timestamp'] = time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime(config.getint('querytime') or int(time.time())))
|
||||
|
||||
r = requests.post(upload, data=json.dumps(msg), timeout=timeout)
|
||||
r = requests.post(upload, json=msg, timeout=timeout)
|
||||
if __debug__ and r.status_code != requests.codes.ok:
|
||||
print 'Status\t%s' % r.status_code
|
||||
print 'URL\t%s' % r.url
|
||||
|
Loading…
x
Reference in New Issue
Block a user