Fix excel route in select

This commit is contained in:
2023-06-02 16:51:19 +02:00
parent 34b4cb6477
commit 257cb8e95a
3 changed files with 6 additions and 2 deletions

View File

@@ -242,7 +242,10 @@ class Arguments(argparse.ArgumentParser):
"default": "local",
"choices": ["local", "docker"],
"required": False,
"help": "in be_flask tells if it is running in local or in docker {local, docker}",
"help": (
"in be_flask tells if it is running in local or "
"in docker {local, docker}"
),
},
],
"platform": [

View File

@@ -16,5 +16,5 @@
<script>
{% include'/js/select.js' %}
</script>
{{ javascript('/js/excelFiles.js') }}
{{ javascript('js/excelFiles.js') }}
{% endblock %}

View File

@@ -12,6 +12,7 @@ def main(args_test=None):
app = create_app()
app.config[TEST] = args_test is not None
app.config[OUTPUT] = args.output
print("Output is ", args.output)
if args.output == "local":
webbrowser.open_new("http://127.0.0.1:1234/")
app.run(port=1234, host="0.0.0.0")