diff --git a/src/resources/table_endpoints/table_endpoints.py b/src/resources/table_endpoints/table_endpoints.py index 0316a9d4..5194e50f 100644 --- a/src/resources/table_endpoints/table_endpoints.py +++ b/src/resources/table_endpoints/table_endpoints.py @@ -1,6 +1,6 @@ from flask_restful import Resource -from common.database_helpers import get_investigations_for_user +from common.database_helpers import get_investigations_for_user, get_investigations_for_user_count from common.helpers import requires_session_id, queries_records, get_filters_from_query_string @@ -12,7 +12,10 @@ def get(self, id): class UsersInvestigationsCount(Resource): - pass + @requires_session_id + @queries_records + def get(self, id): + return get_investigations_for_user_count(id, get_filters_from_query_string()), 200 class InstrumentsFacilityCycles(Resource):