Skip to content

Commit

Permalink
#148: Allow distinct fields to work correctly with included columns …
Browse files Browse the repository at this point in the history
…of >1 depth
  • Loading branch information
MRichards99 committed Sep 25, 2020
1 parent 20a886d commit 0760556
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/icat/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ def prepare_distinct_fields_for_recursion(self, entity_name, distinct_fields):
:return: A copy of `distinct_fields`, with the data from the entity name put
into the base portion of the dictionary
"""
# Reset base fields
distinct_fields["base"] = []

distinct_fields_copy = distinct_fields.copy()
if entity_name in distinct_fields_copy.keys():
Expand Down

0 comments on commit 0760556

Please sign in to comment.