From c8b37d93c035691691da4a5e081add2ecec5dc5d Mon Sep 17 00:00:00 2001 From: "saket.agrahari" <saket.agrahari@geant.org> Date: Thu, 18 Jan 2024 02:10:39 +0000 Subject: [PATCH] [COMP-329] : fixing tox --- compendium_v2/routes/survey.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compendium_v2/routes/survey.py b/compendium_v2/routes/survey.py index f1b74663..f11c28e5 100644 --- a/compendium_v2/routes/survey.py +++ b/compendium_v2/routes/survey.py @@ -58,12 +58,13 @@ SURVEY_ACTIVE_YEAR_RESPONSE_SCHEMA = { "additionalProperties": False } + @routes.route('/active/year', methods=['GET']) @common.require_accepts_json @login_required def get_active_survey_year() -> Any: """ - retrieve a year of latest active survey + retrieve a year of latest active survey response will be formatted as: @@ -82,9 +83,6 @@ def get_active_survey_year() -> Any: return {'message': 'No open survey found.'}, 404 - - - @routes.route('/list', methods=['GET']) @common.require_accepts_json @login_required -- GitLab