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

[COMP-329] : removing hardcoding with enum

parent 027a47a0
Branches
Tags
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