diff --git a/atdb/taskdatabase/services/algorithms.py b/atdb/taskdatabase/services/algorithms.py index fb99eb9f8ebb811642cace878ef033a1aedc44da..b4702ae029ac4c48b2b83c5f93e8d02ca93d055a 100644 --- a/atdb/taskdatabase/services/algorithms.py +++ b/atdb/taskdatabase/services/algorithms.py @@ -107,13 +107,16 @@ def convert_config_to_html(querylist): # iterate through the dict of key/values key = record.key value = record.value + filter = record.filter + try: if "://" in value: link = "<a href=" + '"' + value + '">' + key +"</a>" value = link except: pass - line = "<tr><td><b>" + str(key) + "</b></td><td>" + str(value) + "</td></tr>" + + line = "<tr><td><b>" + str(filter) + "</b></td> <td><b>" + str(key) + "</b></td><td>" + str(value) + "</td></tr>" results = results + line except: results = "<tr><td>no data</td></tr>" diff --git a/atdb/taskdatabase/templates/taskdatabase/config.html b/atdb/taskdatabase/templates/taskdatabase/config.html index f68f6341b95598370922e4480dbb022edf776e62..f27a683ec4f8e5783e514e7f272c1f25ebb6d498 100644 --- a/atdb/taskdatabase/templates/taskdatabase/config.html +++ b/atdb/taskdatabase/templates/taskdatabase/config.html @@ -7,6 +7,7 @@ <div class="card-body"> <h3>Configuration </h3> <table class="table table-striped"> + <th>filter</th><th>key</th><th>value</th> <tbody> {{ results | safe }} </tbody>