Skip to content

Commit

Permalink
Merge pull request #55 from ral-facilities/52_fix_isis_queries
Browse files Browse the repository at this point in the history
#52 - fix accidentally pluralised entities
  • Loading branch information
louise-davies authored Sep 11, 2019
2 parents 82e7dcb + 9a3c8c9 commit bb0a2a3
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 bb0a2a3

Please sign in to comment.