From 6dd0674aaea26fd403fd73b21fca234f482e5966 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 26 Aug 2022 07:20:30 +0100 Subject: [PATCH] Fix useless if statement --- core/views/ui/drilldown.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/views/ui/drilldown.py b/core/views/ui/drilldown.py index 9aec18a..d5257dd 100644 --- a/core/views/ui/drilldown.py +++ b/core/views/ui/drilldown.py @@ -125,10 +125,7 @@ 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) + context = query_results(request, query_params) else: context = {"object_list": []}