From 22dbd4e0488fd49347f889ae00fb227de7396c3b Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 8 Apr 2021 16:37:50 +0100 Subject: [PATCH] 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. --- plugins/eddn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index dd3446d3..d700ba2b 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -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: """