mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-21 11:27:38 +03:00
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.
This commit is contained in:
parent
86a17e5e4c
commit
58c740bc6c
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user