1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

EDDN: TODO on refactoring & return result of fssdiscoveryscan export

This commit is contained in:
Athanasius 2021-09-24 19:09:39 +01:00
parent c4ba8acb17
commit 1dda61907b
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -661,6 +661,7 @@ Msg:\n{msg}'''
#######################################################################
# Augmentations
#######################################################################
# TODO: See if any of this can be factored out into helper functions.
entry['SystemName'] = system
if this.systemaddress is None:
@ -910,7 +911,7 @@ def journal_entry( # noqa: C901, CCR001
if config.get_int('output') & config.OUT_SYS_EDDN and not state['Captain']:
# Events with their own EDDN schema
if entry['event'].lower() == 'fssdiscoveryscan':
this.eddn.export_journal_fssdiscoveryscan(cmdr, system, is_beta, entry)
return this.eddn.export_journal_fssdiscoveryscan(cmdr, system, is_beta, entry)
# Send interesting events to EDDN, but not when on a crew
if (config.get_int('output') & config.OUT_SYS_EDDN and not state['Captain'] and