Skip to content

Commit

Permalink
#148: Fix bug where no distinct filter is present
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Sep 29, 2020
1 parent 0760556 commit f6df659
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/icat/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def execute_query(self, client, return_json_formattable=False):
raise PythonICATError(e)

flat_query_includes = self.flatten_query_included_fields(self.query.includes)
mapped_distinct_fields = None

if self.query.aggregate == "DISTINCT":
log.info("Extracting the distinct fields from query's conditions")
Expand Down

0 comments on commit f6df659

Please sign in to comment.