From b7648e252731b17b24b208840471dc4caff0fda4 Mon Sep 17 00:00:00 2001 From: Keiran Price Date: Thu, 29 Aug 2019 10:22:21 +0100 Subject: [PATCH] #34: Add filters --- src/resources/table_endpoints/table_endpoints.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/resources/table_endpoints/table_endpoints.py b/src/resources/table_endpoints/table_endpoints.py index 36b68fff..e6b892fd 100644 --- a/src/resources/table_endpoints/table_endpoints.py +++ b/src/resources/table_endpoints/table_endpoints.py @@ -24,7 +24,8 @@ class InstrumentsFacilityCycles(Resource): @requires_session_id @queries_records def get(self, id): - return list(map(lambda x: x.to_dict(), get_facility_cycles_for_instrument(id))), 200 + return list( + map(lambda x: x.to_dict(), get_facility_cycles_for_instrument(id, get_filters_from_query_string()))), 200 class InstrumentsFacilityCyclesCount(Resource):