Skip to content

Commit

Permalink
Include delete_timestamp in call to filter function
Browse files Browse the repository at this point in the history
(cherry picked from commit c9b8be0)
  • Loading branch information
mharding-hpe committed Dec 18, 2024
1 parent f432dff commit 28ae306
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/bos/server/controllers/v2/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 28ae306

Please sign in to comment.