Searches in the name field has been extended to the description as well (close #44)
This commit is contained in:
@@ -59,7 +59,7 @@ class Query():
|
||||
|
||||
############################## SELECT
|
||||
|
||||
SELECT_ALL_SIGNALS = "SELECT SIG_ID, NAME FROM signals ORDER BY NAME ASC"
|
||||
SELECT_ALL_SIGNALS = "SELECT SIG_ID, NAME, DESCRIPTION FROM signals ORDER BY NAME ASC"
|
||||
|
||||
SELECT_ALL_MODULATION = "SELECT DISTINCT VALUE FROM modulation ORDER BY VALUE ASC"
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ class ArtemisDatabase(Database):
|
||||
contains the SIG_ID and the NAME of the signal
|
||||
"""
|
||||
self.all_signals = self.execute(Query.SELECT_ALL_SIGNALS)
|
||||
keys = ('SIG_ID', 'name')
|
||||
keys = ('SIG_ID', 'name', 'description')
|
||||
result = [dict(zip(keys, values)) for values in self.all_signals]
|
||||
self.all_signals = result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user