Skip to content

Commit

Permalink
Merge pull request #79 from tom0827/fix_linting
Browse files Browse the repository at this point in the history
fixing lint issues
  • Loading branch information
tom0827 authored Jul 29, 2024
2 parents 1b78a3e + f9d2212 commit 4244d3b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions met-api/src/met_api/services/survey_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)

Expand Down

0 comments on commit 4244d3b

Please sign in to comment.