Skip to content
Snippets Groups Projects
Commit 4995d75b authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

use supported syntax

parent 5e516311
Branches
Tags
No related merge requests found
......@@ -97,7 +97,7 @@ def test_survey_route_publish(app, client, test_survey_data, mocked_admin_user):
assert not result.get('success')
with app.app_context():
survey = db.session.scalar(Survey.query.filter(Survey.year == 2022))
survey = db.session.query(Survey).filter(Survey.year == 2022).first()
survey.status = SurveyStatus.closed
db.session.commit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment