From 58c740bc6c759bcc6191f5b5803ecd75e2d870ee Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 12 May 2021 18:18:41 +0100 Subject: [PATCH] plugins/eddn: Set odyssey flag in extra messages 1. journal outfitting 2. journal shipyard 3. journal commodities As these are sourced from the additional .json files via a load over `entry` contents we need to re-set `entry['odyssey']` and then make sure we use it. --- plugins/eddn.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/eddn.py b/plugins/eddn.py index bd64ee51..718f6532 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -491,6 +491,7 @@ Msg:\n{msg}''' ('stationName', entry['StationName']), ('marketId', entry['MarketID']), ('commodities', commodities), + ('odyssey', entry['odyssey']) ]), }) @@ -525,6 +526,7 @@ Msg:\n{msg}''' ('marketId', entry['MarketID']), ('horizons', horizons), ('modules', outfitting), + ('odyssey', entry['odyssey']) ]), }) @@ -554,6 +556,7 @@ Msg:\n{msg}''' ('marketId', entry['MarketID']), ('horizons', horizons), ('ships', shipyard), + ('odyssey', entry['odyssey']) ]), }) @@ -896,6 +899,7 @@ def journal_entry( # noqa: C901, CCR001 with path.open('rb') as f: entry = json.load(f) + entry['odyssey'] = this.odyssey if entry['event'] == 'Market': this.eddn.export_journal_commodities(cmdr, is_beta, entry)