From c7026b349711d9e335f1a0b45783fbb5cc99b4eb Mon Sep 17 00:00:00 2001 From: Keiran Price Date: Thu, 29 Aug 2019 12:09:04 +0100 Subject: [PATCH] #34: Update endpoints --- src/resources/table_endpoints/table_endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/table_endpoints/table_endpoints.py b/src/resources/table_endpoints/table_endpoints.py index 81bab725..620a20ae 100644 --- a/src/resources/table_endpoints/table_endpoints.py +++ b/src/resources/table_endpoints/table_endpoints.py @@ -38,7 +38,8 @@ class InstrumentsFacilityCyclesInvestigations(Resource): @requires_session_id @queries_records def get(self, instrument_id, cycle_id): - return list(map(lambda x: x.to_dict(), get_investigations_for_instrument_in_facility_cycle(instrument_id, cycle_id))), 200 + return get_investigations_for_instrument_in_facility_cycle(instrument_id, cycle_id, + get_filters_from_query_string()), 200 class InstrumentsFacilityCyclesInvestigationsCount(Resource): @@ -46,4 +47,3 @@ class InstrumentsFacilityCyclesInvestigationsCount(Resource): @queries_records def get(self, instrument_id, cycle_id): return get_investigations_for_instrument_in_facility_cycle_count(instrument_id, cycle_id), 200 -