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

Dont ignore first killswitch checks changes

This commit is contained in:
A_D 2021-07-09 13:53:12 +02:00
parent e79975bea8
commit 98e8179c3e
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -343,14 +343,14 @@ def journal_entry( # noqa: C901, CCR001
return ''
should_return, new_entry = killswitch.check_killswitch(
f'plugins.inara.journal.event.{entry["event"]}', entry, logger
f'plugins.inara.journal.event.{entry["event"]}', new_entry, logger
)
if should_return:
logger.trace('returning due to killswitch match')
# this can and WILL break state, but if we're concerned about it sending bad data, we'd disable globally anyway
return ''
entry = new_entry # type: ignore # Im done trying to teach mypy how to generic. Its the same thing, I promise.
entry = cast(Dict[str, Any], new_entry)
this.on_foot = state['OnFoot']
event_name: str = entry['event']
this.cmdr = cmdr