Fix useless if statement

This commit is contained in:
Mark Veidemanis 2022-08-26 07:20:30 +01:00
parent 36988769df
commit 6dd0674aae
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 4 deletions

View File

@ -125,9 +125,6 @@ def drilldown_search(request, return_context=False, template=None):
query_params["to_time"] = dates["to_time"]
if "query" in query_params:
if request.GET:
context = query_results(request, query_params)
elif request.POST:
context = query_results(request, query_params)
else:
context = {"object_list": []}