Merge branch 'master' into principale

This commit is contained in:
A_Ponzano 2025-01-31 08:48:02 +01:00 committed by GitHub
commit e9f1cd354e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,7 @@ pref_flags = []
for pref in userPrefs: for pref in userPrefs:
if userPrefs[pref].startswith("{"): if userPrefs[pref].startswith("{"):
pref_flags.append("-D" + pref + "=" + userPrefs[pref]) pref_flags.append("-D" + pref + "=" + userPrefs[pref])
elif userPrefs[pref].replace(".", "").isdigit(): elif userPrefs[pref].lstrip("-").replace(".", "").isdigit():
pref_flags.append("-D" + pref + "=" + userPrefs[pref]) pref_flags.append("-D" + pref + "=" + userPrefs[pref])
elif userPrefs[pref] == "true" or userPrefs[pref] == "false": elif userPrefs[pref] == "true" or userPrefs[pref] == "false":
pref_flags.append("-D" + pref + "=" + userPrefs[pref]) pref_flags.append("-D" + pref + "=" + userPrefs[pref])