Refactor Database.py to handle custom_config with "exploded" key in method "ui"

This commit is contained in:
Théophile Diot 2024-04-22 15:00:34 +02:00
parent 8a4a875947
commit dce5ec484a
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -1101,7 +1101,7 @@ class Database:
to_put = []
endl = "\n"
for custom_config in custom_configs:
if method != "ui":
if "exploded" in custom_config:
config = {"data": custom_config["value"], "method": method}
if custom_config["exploded"][0]: