From 0d58a3b082276085949c94ac847706ee3b373c98 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 30 Aug 2022 11:50:52 +0100 Subject: [PATCH] Fix src/source issue --- core/lib/opensearch.py | 4 +++- core/templates/modals/context_table.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/lib/opensearch.py b/core/lib/opensearch.py index 7972a1a..9077c03 100644 --- a/core/lib/opensearch.py +++ b/core/lib/opensearch.py @@ -216,7 +216,9 @@ def construct_query(query, size, use_query_string=True, tokens=False): return query_base -def run_main_query(client, user, query, custom_query=False, index=None, size=None, filter=True): +def run_main_query( + client, user, query, custom_query=False, index=None, size=None, filter=True +): """ Low level helper to run an ES query. Accept a user to pass it to the filter, so we can diff --git a/core/templates/modals/context_table.html b/core/templates/modals/context_table.html index 5dc6e6f..efb53b8 100644 --- a/core/templates/modals/context_table.html +++ b/core/templates/modals/context_table.html @@ -102,7 +102,7 @@ {% endif %} - {% if item.source == 'irc' %} + {% if item.src == 'irc' %}