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

#31 Removed unreachable code

parent 0dc46118
Pipeline #125655 passed with stage
in 28 seconds
......@@ -99,8 +99,6 @@ class OfferList(
status = query_params.get("status", None)
if status is not None and self.request is not None:
query_set = query_set.filter(status=status)
if query_params.get("status", None) is None:
query_set = Offer.objects.filter(Q(owner=user)).distinct()
return query_set
def filter_on_category(self, query_set, query_params, user):
......
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