about summary refs log tree commit diff
path: root/gn3/db/case_attributes.py
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-07-01 10:14:39 +0300
committerBonfaceKilz2025-07-07 07:58:31 +0300
commit6e9cac9c172b1aec408de1c839dad3e7048cf4d1 (patch)
tree82ec368619650f7dc8c9630339194b00df386237 /gn3/db/case_attributes.py
parentb5c4edab59cdd90485088c4ab7ef688a01e79314 (diff)
downloadgenenetwork3-6e9cac9c172b1aec408de1c839dad3e7048cf4d1.tar.gz
Return true at the end of for loop when updating case attributes.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/db/case_attributes.py')
-rw-r--r--gn3/db/case_attributes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/db/case_attributes.py b/gn3/db/case_attributes.py
index b8ad03b..48d77c7 100644
--- a/gn3/db/case_attributes.py
+++ b/gn3/db/case_attributes.py
@@ -127,7 +127,7 @@ def update_case_attribute(cursor, directory: Path,
                 approved_ids.add(change_id)
                 txn.put(b"review", pickle.dumps(review_ids))
                 txn.put(b"approved", pickle.dumps(approved_ids))
-                return True
+    return True
 
 
 def __fetch_case_attrs_changes__(cursor, change_ids: tuple) -> list: