From c68d930de4408ef60ce4fae51bc94e55363f0325 Mon Sep 17 00:00:00 2001 From: Keiran Price Date: Thu, 29 Aug 2019 10:27:01 +0100 Subject: [PATCH] #34: Update endpoint --- src/resources/table_endpoints/table_endpoints.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/resources/table_endpoints/table_endpoints.py b/src/resources/table_endpoints/table_endpoints.py index e6b892fd..81bab725 100644 --- a/src/resources/table_endpoints/table_endpoints.py +++ b/src/resources/table_endpoints/table_endpoints.py @@ -24,8 +24,7 @@ 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, get_filters_from_query_string()))), 200 + return get_facility_cycles_for_instrument(id, get_filters_from_query_string()), 200 class InstrumentsFacilityCyclesCount(Resource):