mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Fix IS_DRAFT setting being overridden when getting config
This commit is contained in:
parent
950520eac6
commit
2275d00bdd
1 changed files with 2 additions and 2 deletions
|
|
@ -1599,11 +1599,11 @@ class Database:
|
|||
if not global_only and is_multisite:
|
||||
servers = ""
|
||||
for service in services:
|
||||
for key in multisite:
|
||||
config[f"{service.id}_{key}"] = config[key]
|
||||
config[f"{service.id}_IS_DRAFT"] = "yes" if service.is_draft else "no"
|
||||
if methods:
|
||||
config[f"{service.id}_IS_DRAFT"] = {"value": config[f"{service.id}_IS_DRAFT"], "global": False, "method": "default"}
|
||||
for key in multisite:
|
||||
config[f"{service.id}_{key}"] = config[key]
|
||||
servers += f"{service.id} "
|
||||
servers = servers.strip()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue