1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 16:27:13 +03:00

plugins/eddn.py: encode() un-necessary

This commit is contained in:
Athanasius 2019-09-11 16:11:21 +01:00
parent e73db981a8
commit fd4acae9a5

View File

@ -112,7 +112,6 @@ class EDDN(object):
('message', msg['message']),
])
print('plugins/eddn.py:send(): msg[header][softwareName] = "{}"'.format(msg['header']['softwareName']))
r = self.session.post(self.UPLOAD, data=json.dumps(msg), timeout=self.TIMEOUT)
if __debug__ and r.status_code != requests.codes.ok:
print('Status\t%s' % r.status_code)
@ -315,7 +314,7 @@ class EDDN(object):
}
if self.replayfile or self.load():
# Store the entry
self.replaylog.append(json.dumps([cmdr.encode('utf-8'), msg]))
self.replaylog.append(json.dumps([cmdr, msg]))
self.replayfile.write('%s\n' % self.replaylog[-1])
if (entry['event'] == 'Docked' or