From da00429133a8c565a13c3772225c0e1c3ded1d52 Mon Sep 17 00:00:00 2001 From: Corey Koelewyn Date: Thu, 14 Nov 2024 16:09:55 -0800 Subject: [PATCH] TRACK-212: Fixed filtering logic to remove 'deleted' and inactive actions --- epictrack-api/src/api/services/event.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epictrack-api/src/api/services/event.py b/epictrack-api/src/api/services/event.py index 67a431a1f..e3e9126f7 100644 --- a/epictrack-api/src/api/services/event.py +++ b/epictrack-api/src/api/services/event.py @@ -1136,8 +1136,8 @@ def _process_actions(cls, event: Event, outcome_id: int = None) -> None: db.session.query(ActionConfiguration) .join(Action, Action.id == ActionConfiguration.action_id) .filter( - ActionConfiguration.outcome_configuration_id == outcome_id and - ActionConfiguration.is_active is True and + ActionConfiguration.outcome_configuration_id == outcome_id, + ActionConfiguration.is_active is True, ActionConfiguration.is_deleted is False ) .order_by(ActionConfiguration.sort_order)