diff --git a/src/resources/table_endpoints/table_endpoints.py b/src/resources/table_endpoints/table_endpoints.py index 048687bd..a30463bf 100644 --- a/src/resources/table_endpoints/table_endpoints.py +++ b/src/resources/table_endpoints/table_endpoints.py @@ -1,7 +1,7 @@ from flask_restful import Resource from common.database_helpers import get_investigations_for_user, get_investigations_for_user_count, \ - get_facility_cycles_for_instrument + get_facility_cycles_for_instrument, get_facility_cycles_for_instrument_count from common.helpers import requires_session_id, queries_records, get_filters_from_query_string @@ -27,7 +27,10 @@ def get(self, id): class InstrumentsFacilityCyclesCount(Resource): - pass + @requires_session_id + @queries_records + def get(self, id): + return get_facility_cycles_for_instrument_count(id), 200 class InstrumentsFacilityCyclesInvestigations(Resource):