Check that lists are enabled

main
Bob Mottram 2021-10-21 20:03:26 +01:00
parent 9ecb745d3d
commit 48d3235b8f
1 changed files with 12 additions and 11 deletions

View File

@ -1677,17 +1677,18 @@ def _htmlEditProfileFiltering(baseDir: str, nickname: str, domain: str,
200, '', False)
CWlistsStr = ''
print('CWlistsStr 0: ' + str(CWlists))
for name, item in CWlists.items():
print('CWlistsStr: ' + name)
variableName = 'list' + name.replace(' ', '').replace("'", '')
if name in listsEnabled:
listIsEnabled = True
else:
listIsEnabled = False
if translate.get(name):
name = translate[name]
CWlistsStr += editCheckBox(name, variableName, listIsEnabled)
if listsEnabled:
print('CWlistsStr 0: ' + str(CWlists))
for name, item in CWlists.items():
print('CWlistsStr: ' + name)
variableName = 'list' + name.replace(' ', '').replace("'", '')
if name in listsEnabled:
listIsEnabled = True
else:
listIsEnabled = False
if translate.get(name):
name = translate[name]
CWlistsStr += editCheckBox(name, variableName, listIsEnabled)
if CWlistsStr:
idx = 'Add content warnings for the following sites'
editProfileForm += \