Skip to content

Commit

Permalink
#17: Allow empty filters
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Jul 1, 2019
1 parent c97b70a commit 2862b7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/database_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def get_rows_by_filter(table, filters):
base_query = session.query(table)
for filter in filters:
if len(filter) == 0:
raise BadFilterError()
if list(filter)[0].lower() == "where":
pass
elif list(filter)[0].lower() == "where":
for key in filter:
where_part = filter[key]
for k in where_part:
Expand Down

0 comments on commit 2862b7c

Please sign in to comment.