diff options
| author | Munyoki Kilyungi | 2025-07-01 15:31:10 +0300 |
|---|---|---|
| committer | BonfaceKilz | 2025-07-07 07:58:31 +0300 |
| commit | 29fa7568856aff8b491396290416379677ff5baa (patch) | |
| tree | 21fd8d887ae1c5548514f5f5078273874e2e3183 /gn3/api/case_attributes.py | |
| parent | 524046c1c3c67d0d580381a7e20ce93ac76afb28 (diff) | |
| download | genenetwork3-29fa7568856aff8b491396290416379677ff5baa.tar.gz | |
Delete "update_case_attribute"
To update an attribute, you can use the "apply_change" function instead. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api/case_attributes.py')
| -rw-r--r-- | gn3/api/case_attributes.py | 3 |
1 files changed, 1 insertions, 2 deletions
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", |
