mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-08 19:32:15 +03:00
Fixes plugins/eddn massaging of economies and prohibited data
This commit is contained in:
parent
e40dc5a4ae
commit
24a8a5bce6
@ -191,9 +191,9 @@ class EDDN(object):
|
|||||||
('commodities', commodities),
|
('commodities', commodities),
|
||||||
])
|
])
|
||||||
if 'economies' in data['lastStarport']:
|
if 'economies' in data['lastStarport']:
|
||||||
message['economies'] = sorted([x for x in (data['lastStarport']['economies'] or {}).values()])
|
message['economies'] = sorted(list([x for x in (data['lastStarport']['economies'] or {}).values()]), key=lambda x: x['name'])
|
||||||
if 'prohibited' in data['lastStarport']:
|
if 'prohibited' in data['lastStarport']:
|
||||||
message['prohibited'] = sorted([x for x in (data['lastStarport']['prohibited'] or {}).values()])
|
message['prohibited'] = sorted(list([x for x in (data['lastStarport']['prohibited'] or {}).values()]))
|
||||||
self.send(data['commander']['name'], {
|
self.send(data['commander']['name'], {
|
||||||
'$schemaRef' : 'https://eddn.edcd.io/schemas/commodity/3' + (is_beta and '/test' or ''),
|
'$schemaRef' : 'https://eddn.edcd.io/schemas/commodity/3' + (is_beta and '/test' or ''),
|
||||||
'message' : message,
|
'message' : message,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user