Commit acd010a2 authored by Håvard Farestveit's avatar Håvard Farestveit
Browse files

Removed uneeded if check

parent 4bba12a2
Pipeline #125666 passed with stage
in 33 seconds
......@@ -105,7 +105,7 @@ class OfferList(
@staticmethod
def filter_on_category(query_set, query_params, user):
category = query_params.get("category", None)
if category is not None and query_params is not None:
if category is not None:
if category == "sent":
query_set = query_set.filter(owner=user)
elif category == "received":
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment