Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compendium-v2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
compendium-v2
Merge requests
!94
[COMP-329] : fixing tox
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[COMP-329] : fixing tox
COMP-329
into
develop
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Saket Agrahari
requested to merge
COMP-329
into
develop
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
c8b37d93
1 commit,
1 year ago
1 file
+
2
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
compendium_v2/routes/survey.py
+
2
−
4
Options
@@ -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
Loading