Skip to content

Commit

Permalink
#2: Change name
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Jul 2, 2019
1 parent e305449 commit e72561d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/database_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ def get_related_entities(include_filters, results):
included_results.append(i)
else:
included_results.append(getattr(row, relation.upper()))
for row in included_results:
for included_row in included_results:
for relation in included_included_relationships:
if isinstance(getattr(row, relation.upper()), InstrumentedList):
for i in getattr(row, relation.upper()):
if isinstance(getattr(included_row, relation.upper()), InstrumentedList):
for i in getattr(included_row, relation.upper()):
included_included_results.append(i)
else:
included_included_results.append(getattr(row, relation.upper()))
included_included_results.append(getattr(included_row, relation.upper()))
results.extend(included_results)
results.extend(included_included_results)
return results
Expand Down

0 comments on commit e72561d

Please sign in to comment.