main
Bob Mottram 2021-12-05 21:15:32 +00:00
parent e6dbfad6ba
commit 5b8367fe68
1 changed files with 4 additions and 0 deletions

View File

@ -2170,6 +2170,8 @@ class PubServer(BaseHTTPRequestHandler):
fields = {}
print('themeParams: ' + str(themeParams))
with open(baseDir + '/teststr.txt') as fp:
fp.write(themeParams)
fieldsList = themeParams.split('&')
for fieldStr in fieldsList:
if '=' not in fieldStr:
@ -2177,6 +2179,8 @@ class PubServer(BaseHTTPRequestHandler):
fieldValue = fieldStr.split('=')[1].strip()
if fieldValue == 'on':
fieldValue = 'True'
elif fieldValue == 'off':
fieldValue = 'False'
if not fieldValue:
fieldValue = 'False'
fields[fieldStr.split('=')[0]] = fieldValue