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

Change order of questions under service section and indent 2 spaces

parent d143c940
No related branches found
No related tags found
No related merge requests found
...@@ -40,15 +40,11 @@ def _cli(app, year): ...@@ -40,15 +40,11 @@ def _cli(app, year):
if not survey: if not survey:
raise Exception('Survey not found') raise Exception('Survey not found')
if survey.status != SurveyStatus.closed:
raise Exception(
'Make sure the survey has status closed when youre going to update it, especially in production!'
)
filename = "survey_model_" + str(survey.year) + ".json" filename = "survey_model_" + str(survey.year) + ".json"
dump_file = os.path.join(os.path.dirname(__file__), 'surveymodels', filename) dump_file = os.path.join(os.path.dirname(__file__), 'surveymodels', filename)
with open(dump_file, "w") as out: with open(dump_file, "w") as out:
json.dump(survey.survey, out, indent=1) json.dump(survey.survey, out, indent=1)
print(f"Dumped survey model to {dump_file}")
@click.command() @click.command()
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment