Skip to content

Commit

Permalink
#146: Correct facility cycle ISIS endpoint
Browse files Browse the repository at this point in the history
- This ensures the correct DB tables are joined together, to match the output of the request in the DB backend. This has been compared with a query from TopCat and also gives an identical output for my test data
  • Loading branch information
MRichards99 committed Oct 14, 2020
1 parent 397602d commit be35d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/icat/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def get_facility_cycles_for_instrument(client, instrument_id, filters):
"facility.instruments.id", instrument_id, "eq"
)
investigation_instrument_id_check = PythonICATWhereFilter(
"facility.instruments.investigationInstruments.instrument.id",
"facility.investigations.investigationInstruments.instrument.id",
instrument_id,
"eq",
)
Expand Down

0 comments on commit be35d4b

Please sign in to comment.