Refactor setup_page() function to include USE_UI configuration option

This commit is contained in:
Théophile Diot 2024-10-29 17:03:49 +01:00
parent 806f2632f2
commit bcd3ff63eb
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -129,6 +129,7 @@ def setup_page():
base_config = {
"SERVER_NAME": request.form["server_name"],
"USE_UI": "yes",
"USE_TEMPLATE": "ui",
}
@ -170,7 +171,7 @@ def setup_page():
if not config.get("MULTISITE", "no") == "yes":
BW_CONFIG.edit_global_conf({"MULTISITE": "yes"}, check_changes=False)
operation, error = BW_CONFIG.new_service(base_config, override_method="wizard", check_changes=False)
operation, error = BW_CONFIG.new_service(base_config, override_method="wizard")
if error:
return handle_error(f"Couldn't create the new service: {operation}", "setup", False, "error")