Fix saving config for multiple settings

This commit is contained in:
Théophile Diot 2022-12-06 12:07:37 +01:00
parent a0c2db7a09
commit e2b2505d83
No known key found for this signature in database
GPG key ID: E752C80DB72BB014

View file

@ -430,8 +430,8 @@ class Database:
Services_settings.method: method, Services_settings.method: method,
} }
) )
elif key not in global_values: elif f"{key}_{suffix}" not in global_values:
global_values.append(key) global_values.append(f"{key}_{suffix}")
global_value = ( global_value = (
session.query(Global_values) session.query(Global_values)
.with_entities(Global_values.value) .with_entities(Global_values.value)