mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-05 01:43:16 +03:00
plugins/eddn.py: encode() un-necessary
This commit is contained in:
parent
e73db981a8
commit
fd4acae9a5
@ -112,7 +112,6 @@ class EDDN(object):
|
|||||||
('message', msg['message']),
|
('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)
|
r = self.session.post(self.UPLOAD, data=json.dumps(msg), timeout=self.TIMEOUT)
|
||||||
if __debug__ and r.status_code != requests.codes.ok:
|
if __debug__ and r.status_code != requests.codes.ok:
|
||||||
print('Status\t%s' % r.status_code)
|
print('Status\t%s' % r.status_code)
|
||||||
@ -315,7 +314,7 @@ class EDDN(object):
|
|||||||
}
|
}
|
||||||
if self.replayfile or self.load():
|
if self.replayfile or self.load():
|
||||||
# Store the entry
|
# 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])
|
self.replayfile.write('%s\n' % self.replaylog[-1])
|
||||||
|
|
||||||
if (entry['event'] == 'Docked' or
|
if (entry['event'] == 'Docked' or
|
||||||
|
Loading…
x
Reference in New Issue
Block a user