Skip to content
Snippets Groups Projects
Commit f51813df authored by Saket Agrahari's avatar Saket Agrahari
Browse files

Merge branch 'COMP-329' into 'develop'

[COMP-329] : removing hardcoding with enum

See merge request !92
parents 7d740cb6 badfa539
No related branches found
No related tags found
1 merge request!92[COMP-329] : removing hardcoding with enum
......@@ -75,7 +75,7 @@ def get_active_survey_year() -> Any:
return {'message': 'Insufficient privileges to access this resource'}, 403
survey_record = db.session.query(Survey.year).filter(
Survey.status == 'open'
Survey.status == SurveyStatus.open
).order_by(Survey.year.desc()).first()
if survey_record:
year = survey_record.year
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment