1
0
forked from shaytan/rdgen

fix bug with manual settings

This commit is contained in:
Bryan Gerlach
2024-09-25 08:39:43 -05:00
parent b401aa531b
commit ba3df17500

View File

@@ -120,12 +120,12 @@ def generator_view(request):
decodedCustom['override-settings']['allow-remote-config-modification'] = 'Y' if enableRemoteModi else 'N'
for line in defaultManual.splitlines():
key, value = line.split('=')
decodedCustom['default-settings'][key.strip()] = value.strip()
k, value = line.split('=')
decodedCustom['default-settings'][k.strip()] = value.strip()
for line in overrideManual.splitlines():
key, value = line.split('=')
decodedCustom['override-settings'][key.strip()] = value.strip()
k, value = line.split('=')
decodedCustom['override-settings'][k.strip()] = value.strip()
decodedCustomJson = json.dumps(decodedCustom)