Fix source parsing and set default to all

master
Mark Veidemanis 1 year ago
parent c5856ce20b
commit 7d0ebf87bd
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -29,7 +29,7 @@ DRILLDOWN_DEFAULT_PARAMS = {
"size": "15",
"index": "main",
"sorting": "desc",
"source": "4ch",
"source": "all",
}

@ -548,7 +548,7 @@ class ElasticsearchBackend(StorageBackend):
add_top_tmp["bool"]["should"].append(
{"match_phrase": {"src": source_iter}}
)
if rule_object is not None and query_params["source"] != "all":
if query_params["source"] != "all":
add_top.append(add_top_tmp)
# R - Ranges

Loading…
Cancel
Save