Skip to content

Commit

Permalink
#41: Update Factory
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Sep 11, 2019
1 parent 2a496a0 commit 1b76f38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/database_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ def get_query_filter(filter):
return LimitFilter(filter["limit"])
elif filter_name == "include":
return IncludeFilter(filter)
elif filter_name == "distinct":
return DistinctFieldFilter(filter["distinct"])
else:
raise BadFilterError(f" Bad filter: {filter}")

Expand Down

0 comments on commit 1b76f38

Please sign in to comment.