mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 08:17:13 +03:00
Add marketId to EDDN commodity, outfitting and shipyard messages
This commit is contained in:
parent
8b53b25a86
commit
cf0a1bf394
3
eddn.py
3
eddn.py
@ -183,6 +183,7 @@ class EDDN:
|
||||
time.gmtime(config.getint('querytime') or int(time.time())))),
|
||||
('systemName', data['lastSystem']['name']),
|
||||
('stationName', data['lastStarport']['name']),
|
||||
('marketId', data['lastStarport']['id']),
|
||||
('commodities', commodities),
|
||||
])
|
||||
if 'economies' in data['lastStarport']:
|
||||
@ -204,6 +205,7 @@ class EDDN:
|
||||
time.gmtime(config.getint('querytime') or int(time.time())))),
|
||||
('systemName', data['lastSystem']['name']),
|
||||
('stationName', data['lastStarport']['name']),
|
||||
('marketId', data['lastStarport']['id']),
|
||||
('modules', sorted([module['name'] for module in data['lastStarport']['modules'].itervalues() if module_re.search(module['name']) and module.get('sku') in [None, 'ELITE_HORIZONS_V_PLANETARY_LANDINGS'] and module['name'] != 'Int_PlanetApproachSuite'])),
|
||||
]),
|
||||
})
|
||||
@ -218,6 +220,7 @@ class EDDN:
|
||||
time.gmtime(config.getint('querytime') or int(time.time())))),
|
||||
('systemName', data['lastSystem']['name']),
|
||||
('stationName', data['lastStarport']['name']),
|
||||
('marketId', data['lastStarport']['id']),
|
||||
('ships', sorted([ship['name'] for ship in data['lastStarport']['ships']['shipyard_list'].values() + data['lastStarport']['ships']['unavailable_list']])),
|
||||
]),
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user