From 29fa7568856aff8b491396290416379677ff5baa Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 1 Jul 2025 15:31:10 +0300 Subject: Delete "update_case_attribute" To update an attribute, you can use the "apply_change" function instead. Signed-off-by: Munyoki Kilyungi --- gn3/api/case_attributes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gn3/api/case_attributes.py') diff --git a/gn3/api/case_attributes.py b/gn3/api/case_attributes.py index fa62942..0058bb9 100644 --- a/gn3/api/case_attributes.py +++ b/gn3/api/case_attributes.py @@ -231,8 +231,7 @@ def edit_case_attributes(inbredset_id: int, auth_token=None) -> Response: inbredset_id, ("system:inbredset:edit-case-attribute", "system:inbredset:apply-case-attribute-edit")) - edit.status = EditStatus.approved - match update_case_attributes(cursor=cursor, change_id=_id, edit=edit): + match apply_change(cursor, change_type=EditStatus.approved, directory=directory): case True: return jsonify({ "diff-status": "applied", -- cgit 1.4.1