mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-08 19:32:15 +03:00
updated eddb to new killswitches
This commit is contained in:
parent
bb882d633a
commit
c86b9790ca
@ -94,14 +94,14 @@ def prefs_changed(cmdr, is_beta):
|
|||||||
|
|
||||||
|
|
||||||
def journal_entry(cmdr, is_beta, system, station, entry, state):
|
def journal_entry(cmdr, is_beta, system, station, entry, state):
|
||||||
if (ks := killswitch.get_disabled('plugins.eddb.journal')).disabled:
|
should_return, new_entry = killswitch.check_killswitch('plugins.eddb.journal', entry)
|
||||||
logger.warning(f'Journal processing for EDDB has been disabled: {ks.reason}')
|
if should_return:
|
||||||
# LANG: Journal Processing disabled due to an active killswitch
|
# LANG: Journal Processing disabled due to an active killswitch
|
||||||
plug.show_error(_('EDDB Journal processing disabled. See Log.'))
|
plug.show_error(_('EDDB Journal processing disabled. See Log.'))
|
||||||
return
|
return
|
||||||
|
|
||||||
elif (ks := killswitch.get_disabled(f'plugins.eddb.journal.event.{entry["event"]}')).disabled:
|
should_return, new_entry = killswitch.check_killswitch(f'plugins.eddb.journal.event.{entry["event"]}', new_entry)
|
||||||
logger.warning(f'Processing of event {entry["event"]} has been disabled: {ks.reason}')
|
if should_return:
|
||||||
return
|
return
|
||||||
|
|
||||||
this.on_foot = state['OnFoot']
|
this.on_foot = state['OnFoot']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user