From 98e8179c3eca40d05ca2310b0b0a56161b1d805a Mon Sep 17 00:00:00 2001 From: A_D Date: Fri, 9 Jul 2021 13:53:12 +0200 Subject: [PATCH] Dont ignore first killswitch checks changes --- plugins/inara.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/inara.py b/plugins/inara.py index 03939ce8..74520dcb 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -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