about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-07-02 15:54:25 +0300
committerBonfaceKilz2025-07-07 07:58:31 +0300
commita01fff827dcc933bebf0cbcc34cf54569486c275 (patch)
tree0b53ff5960c3e0e2b0bcf73ab4b2abf3f5500d0f
parentb781e34590b028dfc656b787f17a20e0fe1c0638 (diff)
downloadgenenetwork3-a01fff827dcc933bebf0cbcc34cf54569486c275.tar.gz
Rename dict key.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--gn3/db/case_attributes.py2
-rw-r--r--tests/unit/db/test_case_attributes.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/gn3/db/case_attributes.py b/gn3/db/case_attributes.py
index e49fe5d..df09e75 100644
--- a/gn3/db/case_attributes.py
+++ b/gn3/db/case_attributes.py
@@ -220,7 +220,7 @@ def get_changes(cursor, change_type: EditStatus, directory: Path) -> dict:
         "change-type": str(change_type),
         "count": {
             "reviews": len(review_ids),
-            "approval": len(approved_ids),
+            "approvals": len(approved_ids),
             "rejections": len(rejected_ids)
         },
         "data": changes
diff --git a/tests/unit/db/test_case_attributes.py b/tests/unit/db/test_case_attributes.py
index 7258cee..87f142f 100644
--- a/tests/unit/db/test_case_attributes.py
+++ b/tests/unit/db/test_case_attributes.py
@@ -279,7 +279,7 @@ def test_get_changes(mocker: MockFixture) -> None:
         "change-type": "review",
         "count": {
             "reviews": 2,
-            "approval": 2,
+            "approvals": 2,
             "rejections": 4
         },
         "data": {