Refactor templates values gathering for multisite settings

This commit is contained in:
Théophile Diot 2024-09-14 18:00:23 +02:00
parent 27152f0977
commit 398a33ccfe
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -1919,7 +1919,7 @@ class Database:
for setting in query:
key = f"{service_id}_{setting.setting_id}" + (f"_{setting.suffix}" if setting.suffix > 0 else "")
if key in config and config[key]["method"] != "default":
if key in config and config[key]["method"] != "default" and not config[key]["global"]:
continue
config[key] = {