1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

EDDN: Fix building of "ships this station sells" list.

This likely hadn't been tested since a rewrite due to pre-Odyssey alpha
having broken CAPI without shipyard_list on normal stations.
This commit is contained in:
Athanasius 2021-04-08 16:37:50 +01:00
parent 74656f45c9
commit 22dbd4e048

@ -428,7 +428,7 @@ Msg:\n{msg}'''
shipyard: List[Mapping[str, Any]] = sorted(
itertools.chain(
(ship['name'].lower() for ship in (ships['shipyard_list'] or {}).values()),
ships['unavailable_list']
(ship['name'].lower() for ship in ships['unavailable_list'] or {}),
)
)
# Don't send empty ships list - shipyard data is only guaranteed present if user has visited the shipyard.
@ -550,7 +550,7 @@ Msg:\n{msg}'''
]),
})
this.shipyard = (horizons, shipyard)
# this.shipyard = (horizons, shipyard)
def export_journal_entry(self, cmdr: str, is_beta: bool, entry: Mapping[str, Any]) -> None:
"""