mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 09:57:40 +03:00
eddn: For 'docked' only set entry Body(Type) if latter is 'Planet'
We explicitly must not set this for other BodyType, e.g. 'Station'.
This commit is contained in:
parent
6f3967fb7f
commit
386ea1636e
@ -2323,10 +2323,10 @@ def journal_entry( # noqa: C901, CCR001
|
|||||||
]
|
]
|
||||||
|
|
||||||
# add planet to Docked event for planetary stations if known
|
# add planet to Docked event for planetary stations if known
|
||||||
if event_name == 'docked' and this.body_name:
|
if event_name == 'docked' and state['Body'] is not None:
|
||||||
# FIXME - Is this correct if using monitor.py tracking ?
|
if state['BodyType'] == 'Planet':
|
||||||
entry['Body'] = this.body_name
|
entry['Body'] = state['Body']
|
||||||
entry['BodyType'] = 'Planet'
|
entry['BodyType'] = state['BodyType']
|
||||||
|
|
||||||
# The generic journal schema is for events:
|
# The generic journal schema is for events:
|
||||||
# Docked, FSDJump, Scan, Location, SAASignalsFound, CarrierJump
|
# Docked, FSDJump, Scan, Location, SAASignalsFound, CarrierJump
|
||||||
|
Loading…
x
Reference in New Issue
Block a user