Fix source parsing and set default to all

This commit is contained in:
2023-02-10 07:20:22 +00:00
parent c5856ce20b
commit 7d0ebf87bd
2 changed files with 2 additions and 2 deletions

View File

@@ -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