1
0
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:
Athanasius 2021-10-10 14:55:46 +01:00
parent d7eacd253c
commit 15ea858c6b
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -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 = {