From 9a3c8c9e800a1266c7fe1c39ce2501c5dcd3e446 Mon Sep 17 00:00:00 2001 From: Louise Davies Date: Wed, 11 Sep 2019 09:18:14 +0100 Subject: [PATCH] #52 - fix accidentally pluralised entities --- common/database_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/database_helpers.py b/common/database_helpers.py index 1873fc6c..be1e745e 100644 --- a/common/database_helpers.py +++ b/common/database_helpers.py @@ -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) \