From 28ae30634cd851e6189e328173622ad8f5774db0 Mon Sep 17 00:00:00 2001 From: "Mitch Harding (the weird one)" Date: Wed, 18 Dec 2024 12:28:48 -0500 Subject: [PATCH] Include delete_timestamp in call to filter function (cherry picked from commit c9b8be0247b40bda60d74384f782fccb8ee315de) --- src/bos/server/controllers/v2/components.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bos/server/controllers/v2/components.py b/src/bos/server/controllers/v2/components.py index 351145ce..26121cdf 100644 --- a/src/bos/server/controllers/v2/components.py +++ b/src/bos/server/controllers/v2/components.py @@ -116,12 +116,11 @@ def get_v2_components_data(id_list=None, session=session or None, staged_session=staged_session or None, phase=phase or None, - status=status or None) - elif delete_timestamp: - _component_filter_func = partial(_set_status, + status=status or None, delete_timestamp=delete_timestamp) else: - _component_filter_func = _set_status + _component_filter_func = partial(_set_status, + delete_timestamp=delete_timestamp) return DB.get_all_filtered(filter_func=_component_filter_func)