mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-20 19:07:38 +03:00
EDDN: codexentry: Use BodyID if available
This commit is contained in:
parent
d7eacd253c
commit
15ea858c6b
@ -799,8 +799,13 @@ Msg:\n{msg}'''
|
||||
entry = ret
|
||||
|
||||
# Body Name and ID, if available
|
||||
# We only trust the Status.json value
|
||||
if this.status_body_name is not None:
|
||||
entry['BodyName'] = this.status_body_name
|
||||
# And thus only set BodyID, which will be from journal events, if
|
||||
# the Journal-sourced Body Name matches
|
||||
if this.status_body_name == this.body_name:
|
||||
entry['BodyID'] = this.body_id
|
||||
#######################################################################
|
||||
|
||||
msg = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user