Skip to content

Commit

Permalink
#34: Update _get_table_to_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Aug 22, 2019
1 parent 9e8e0e5 commit 3261184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/database_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def apply_filter(self, query):
raise BadFilterError(f" Bad operation given to where filter. operation: {self.operation}")

def _get_table_to_filter(self, query):
if type(query) is ISISInvestigationsQuery:
if type(query) is ISISInvestigationsQuery or type(query) is ISISInvestigationsCountQuery:
return INVESTIGATION
else:
return query.table
Expand Down

0 comments on commit 3261184

Please sign in to comment.