Skip to content
Snippets Groups Projects
Commit e13d42c4 authored by Remco Tukker's avatar Remco Tukker
Browse files

linter and bundle

parent 39ce0833
No related branches found
No related tags found
1 merge request!47Feature/comp 218 migrating 2022 data
......@@ -40,7 +40,7 @@ def convert_answers(answers):
data = {}
for id, question_name in mapping.ID_TO_NAME.items():
if not id in answers:
if id not in answers:
continue
answer = answers[id]
......@@ -82,9 +82,8 @@ def convert_answers(answers):
else:
subdict[question_names[-1]] = answer
for id, question_name in mapping.ID_TO_NAME_SERVICES.items():
if not id in answers:
if id not in answers:
continue
answer = answers[id]
......@@ -101,9 +100,9 @@ def convert_answers(answers):
sublist = subdict.setdefault(question_names[-2], [])
sublist.append(question_names[-1])
return {"data": data}
def _cli(app):
with app.app_context():
......
......@@ -59,7 +59,7 @@ def open_survey(nren_name) -> Any:
data: Optional[dict] = None
page = 0
verification_status: dict[str, str] = {"budget": VerificationStatus.Unverified, "TODO": "remove or set all to new"}
verification_status = {"budget": VerificationStatus.Unverified, "TODO": "remove or set all to new"}
response = db.session.scalar(
select(SurveyResponse).where(SurveyResponse.survey_year == year).where(SurveyResponse.nren_id == nren.id)
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment