From f9d2212ccf65337c4ba55ee9d8872327c62fcc00 Mon Sep 17 00:00:00 2001 From: Tom Chapman Date: Mon, 29 Jul 2024 11:35:55 -0700 Subject: [PATCH] fixing lint issues --- met-api/src/met_api/services/survey_service.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/met-api/src/met_api/services/survey_service.py b/met-api/src/met_api/services/survey_service.py index 9010105c1..71282cc8e 100644 --- a/met-api/src/met_api/services/survey_service.py +++ b/met-api/src/met_api/services/survey_service.py @@ -69,7 +69,12 @@ def get_open(cls, survey_id): return survey @staticmethod - def get_surveys_paginated(user_id, pagination_options: PaginationOptions, search_options: SurveySearchOptions, reduce_data: bool): + def get_surveys_paginated( + user_id, + pagination_options: PaginationOptions, + search_options: SurveySearchOptions, + reduce_data: bool + ): """Get engagements paginated.""" # check if user has view all surveys access to view hidden surveys as well user_roles = TokenInfo.get_user_roles() @@ -90,7 +95,7 @@ def get_surveys_paginated(user_id, pagination_options: PaginationOptions, search # surveys_schema = ReducedSurveySchema(many=True) if reduced_data else SurveySchema(many=True) if reduce_data: - surveys_schema = SurveySchema(many=True, only=("id", "name")) + surveys_schema = SurveySchema(many=True, only=('id', 'name')) else: surveys_schema = SurveySchema(many=True)