diff options
author | BonfaceKilz | 2022-05-25 21:36:25 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-05-27 15:02:25 +0300 |
commit | 7bcd718a2954c2f1ff67bea84d79c7cd9a1d43a0 (patch) | |
tree | e0d6cfa820ddf283856d5b1241f557062d9b44f7 /gn3 | |
parent | 9fa398d57e26c8ece01bce7a4f67545449e94821 (diff) | |
download | genenetwork3-7bcd718a2954c2f1ff67bea84d79c7cd9a1d43a0.tar.gz |
Move sql for CRUD operations on case-attrs from gn2 to gn3
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/db/case_attributes.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gn3/db/case_attributes.py b/gn3/db/case_attributes.py index 8eb2bf6..98fc58d 100644 --- a/gn3/db/case_attributes.py +++ b/gn3/db/case_attributes.py @@ -33,13 +33,13 @@ def insert_case_attribute_audit( "INSERT INTO caseattributes_audit " "(status, editor, json_diff_data) " "VALUES (%s, %s, %s)", - (status, author, data), + (status, author, data,), ) rowcount = cursor.rowcount - conn.commit() except Exception as _e: conn.rollback() raise MySQLdb.Error(_e) from _e + conn.commit() return rowcount @@ -55,7 +55,7 @@ def reject_case_attribute(conn: Any, case_attr_audit_id: int) -> int: (case_attr_audit_id,), ) rowcount = cursor.rowcount - conn.commit() + conn.commit() except Exception as _e: conn.rollback() raise MySQLdb.Error(_e) from _e |