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
1 changed files with 2 additions and 2 deletions

View File

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