mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 18:07:37 +03:00
Inara: Drop addCommanderCombatInterdicted if empty opponentName
Addresses #1732 specifically. At some point #1433 needs fully addressing (review all Inara API code for compliance with docs).
This commit is contained in:
parent
b06e579754
commit
2bbda30097
@ -1069,6 +1069,10 @@ def journal_entry( # noqa: C901, CCR001
|
|||||||
elif 'Power' in entry:
|
elif 'Power' in entry:
|
||||||
data['opponentName'] = entry['Power']
|
data['opponentName'] = entry['Power']
|
||||||
|
|
||||||
|
if data['opponentName'] == "":
|
||||||
|
logger.warning('Dropping addCommanderCombatInterdicted message because opponentName came out as ""')
|
||||||
|
|
||||||
|
else:
|
||||||
new_add_event('addCommanderCombatInterdicted', entry['timestamp'], data)
|
new_add_event('addCommanderCombatInterdicted', entry['timestamp'], data)
|
||||||
|
|
||||||
elif event_name == 'Interdiction':
|
elif event_name == 'Interdiction':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user