Skip to content

Commit

Permalink
#52 - fix accidentally pluralised entities
Browse files Browse the repository at this point in the history
  • Loading branch information
louise-davies committed Sep 11, 2019
1 parent 609ce2a commit 9a3c8c9
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 @@ -467,8 +467,8 @@ def __init__(self, instrument_id):
investigationInstrument = aliased(INSTRUMENT)
self.base_query = self.base_query\
.join(FACILITYCYCLE.FACILITY) \
.join(FACILITY.INSTRUMENTS) \
.join(FACILITY.INVESTIGATIONS) \
.join(FACILITY.INSTRUMENT) \
.join(FACILITY.INVESTIGATION) \
.join(INVESTIGATION.INVESTIGATIONINSTRUMENT) \
.join(investigationInstrument, INVESTIGATIONINSTRUMENT.INSTRUMENT) \
.filter(INSTRUMENT.ID == instrument_id) \
Expand Down

0 comments on commit 9a3c8c9

Please sign in to comment.