diff options
| author | Munyoki Kilyungi | 2025-06-25 14:56:24 +0300 |
|---|---|---|
| committer | BonfaceKilz | 2025-07-07 07:58:31 +0300 |
| commit | 0bc56784d9e6f1a606a33cd33d99b39bb87734c1 (patch) | |
| tree | c982f6afc149b9231bf26db8138135cbaff82e0c /gn3/db/case_attributes.py | |
| parent | 45a558cd3025058d0a61fcfdcb0e301c1a3b5ec3 (diff) | |
| download | genenetwork3-0bc56784d9e6f1a606a33cd33d99b39bb87734c1.tar.gz | |
Delete "reject_case_attribute."
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/db/case_attributes.py')
| -rw-r--r-- | gn3/db/case_attributes.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gn3/db/case_attributes.py b/gn3/db/case_attributes.py index c839214..ea3bf27 100644 --- a/gn3/db/case_attributes.py +++ b/gn3/db/case_attributes.py @@ -79,23 +79,6 @@ def queue_edit(cursor, directory: Path, edit: CaseAttributeEdit) -> int: return review_ids -def reject_case_attribute(conn: Any, case_attr_audit_id: int) -> int: - """Given the id of the json_diff in the case_attribute_audit table, reject - it""" - rowcount = 0 - try: - with conn.cursor() as cursor: - cursor.execute( - "UPDATE caseattributes_audit SET " - "status = 'rejected' WHERE id = %s", - (case_attr_audit_id,), - ) - rowcount = cursor.rowcount - except Exception as _e: - raise MySQLdb.Error(_e) from _e - return rowcount - - def approve_case_attribute(conn: Any, case_attr_audit_id: int) -> int: """Given the id of the json_diff in the case_attribute_audit table, approve it |
