From 80381df386ec3d0889753454dee8588f9cd362b9 Mon Sep 17 00:00:00 2001 From: Will Sheldon <114631109+wssheldon@users.noreply.github.com> Date: Mon, 13 Mar 2023 10:09:16 -0700 Subject: [PATCH] FormData argument is redundant in _create_snooze_filter function --- src/dispatch/plugins/dispatch_slack/case/interactive.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dispatch/plugins/dispatch_slack/case/interactive.py b/src/dispatch/plugins/dispatch_slack/case/interactive.py index 252ffc3cd6fc..6c8cc542cf1b 100644 --- a/src/dispatch/plugins/dispatch_slack/case/interactive.py +++ b/src/dispatch/plugins/dispatch_slack/case/interactive.py @@ -563,10 +563,10 @@ def handle_snooze_submission_event( def _create_snooze_filter( db_session: Session, - form_data: FormData, subject: SubjectMetadata, user: DispatchUser, ) -> None: + form_data: FormData = subject.form_data # Get the existing filters for the signal signal = signal_service.get(db_session=db_session, signal_id=subject.id) # Create the new filter from the form data @@ -620,7 +620,6 @@ def _create_snooze_filter( if mfa_enabled is False: _create_snooze_filter( db_session=db_session, - form_data=context["subject"].form_data, user=user, subject=context["subject"], ) @@ -658,7 +657,6 @@ def _create_snooze_filter( # Get the existing filters for the signal _create_snooze_filter( db_session=db_session, - form_data=context["subject"].form_data, user=user, subject=context["subject"], )