mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
EDDN: Revert to using capi_is_horizons() in export_commodities()
This commit is contained in:
parent
694321064d
commit
c97b539ac3
@ -342,6 +342,12 @@ Msg:\n{msg}'''
|
|||||||
:param data: a dict containing the starport data
|
:param data: a dict containing the starport data
|
||||||
:param is_beta: whether or not we're currently in beta mode
|
:param is_beta: whether or not we're currently in beta mode
|
||||||
"""
|
"""
|
||||||
|
modules, ships = self.safe_modules_and_ships(data)
|
||||||
|
horizons: bool = capi_is_horizons(
|
||||||
|
data['lastStarport'].get('economies', {}),
|
||||||
|
modules,
|
||||||
|
ships
|
||||||
|
)
|
||||||
commodities: List[OrderedDictT[str, Any]] = []
|
commodities: List[OrderedDictT[str, Any]] = []
|
||||||
for commodity in data['lastStarport'].get('commodities') or []:
|
for commodity in data['lastStarport'].get('commodities') or []:
|
||||||
# Check 'marketable' and 'not prohibited'
|
# Check 'marketable' and 'not prohibited'
|
||||||
@ -376,7 +382,7 @@ Msg:\n{msg}'''
|
|||||||
('stationName', data['lastStarport']['name']),
|
('stationName', data['lastStarport']['name']),
|
||||||
('marketId', data['lastStarport']['id']),
|
('marketId', data['lastStarport']['id']),
|
||||||
('commodities', commodities),
|
('commodities', commodities),
|
||||||
('horizons', this.horizons),
|
('horizons', horizons),
|
||||||
('odyssey', this.odyssey),
|
('odyssey', this.odyssey),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user