diff options
| author | Munyoki Kilyungi | 2025-07-02 15:31:14 +0300 |
|---|---|---|
| committer | BonfaceKilz | 2025-07-07 07:58:31 +0300 |
| commit | 00565655b7defa94ac89da5bfd8719c6b74326b5 (patch) | |
| tree | 04b12adc0bc1707ac582397d12dc0483c006e30b | |
| parent | 682c48cf914cf136fceac6826739541f26594685 (diff) | |
| download | genenetwork3-00565655b7defa94ac89da5bfd8719c6b74326b5.tar.gz | |
Fix empty change_ids in fetch_case_attrs_changes to return {}.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
| -rw-r--r-- | gn3/db/case_attributes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gn3/db/case_attributes.py b/gn3/db/case_attributes.py index 48afc0c..a81bc07 100644 --- a/gn3/db/case_attributes.py +++ b/gn3/db/case_attributes.py @@ -106,6 +106,8 @@ def __fetch_case_attrs_changes__(cursor, change_ids: tuple) -> list: causing a database error. """ + if not change_ids: + return {} placeholders = ','.join(['%s'] * len(change_ids)) cursor.execute( "SELECT editor, json_diff_data, time_stamp " |
