From 7929c23ac536dd510e3436e4d671160b174dd41e Mon Sep 17 00:00:00 2001 From: Marco Dalla Tiezza Date: Tue, 4 Jun 2024 22:15:44 +0200 Subject: [PATCH] Fixed a bug introduced in 10607c88ea505e1fd4fa2160aaffa7c324ea9c61 --- artemis/utils/constants.py | 2 +- artemis/utils/sql_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/artemis/utils/constants.py b/artemis/utils/constants.py index ffa5f33..69d4970 100644 --- a/artemis/utils/constants.py +++ b/artemis/utils/constants.py @@ -65,7 +65,7 @@ class Query(): SELECT_ALL_LOCATION = "SELECT DISTINCT VALUE FROM location ORDER BY VALUE ASC" - SELECT_SIG_ID = "SELECT SIG_ID, NAME FROM signals WHERE SIG_ID IN ({}) ORDER BY NAME ASC" + SELECT_SIG_ID = "SELECT SIG_ID, NAME, DESCRIPTION FROM signals WHERE SIG_ID IN ({}) ORDER BY NAME ASC" SELECT_ALL_CAT_LABELS = "SELECT CLB_ID, VALUE FROM category_label ORDER BY VALUE ASC" diff --git a/artemis/utils/sql_utils.py b/artemis/utils/sql_utils.py index 16228fb..af069d1 100644 --- a/artemis/utils/sql_utils.py +++ b/artemis/utils/sql_utils.py @@ -132,7 +132,7 @@ class ArtemisDatabase(Database): sig_ids = ",".join(str(num[0]) for num in matching_sig_ids) self.all_signals = self.execute(Query.SELECT_SIG_ID.format(sig_ids)) - keys = ('SIG_ID', 'name') + keys = ('SIG_ID', 'name', 'description') result = [dict(zip(keys, values)) for values in self.all_signals] self.all_signals = result