mirror of https://gitlab.com/bashrc2/epicyon
Checking for enabled lists
parent
48d3235b8f
commit
9e6f608c91
|
@ -1677,18 +1677,15 @@ def _htmlEditProfileFiltering(baseDir: str, nickname: str, domain: str,
|
||||||
200, '', False)
|
200, '', False)
|
||||||
|
|
||||||
CWlistsStr = ''
|
CWlistsStr = ''
|
||||||
if listsEnabled:
|
for name, item in CWlists.items():
|
||||||
print('CWlistsStr 0: ' + str(CWlists))
|
variableName = 'list' + name.replace(' ', '').replace("'", '')
|
||||||
for name, item in CWlists.items():
|
listIsEnabled = False
|
||||||
print('CWlistsStr: ' + name)
|
if listsEnabled:
|
||||||
variableName = 'list' + name.replace(' ', '').replace("'", '')
|
|
||||||
if name in listsEnabled:
|
if name in listsEnabled:
|
||||||
listIsEnabled = True
|
listIsEnabled = True
|
||||||
else:
|
if translate.get(name):
|
||||||
listIsEnabled = False
|
name = translate[name]
|
||||||
if translate.get(name):
|
CWlistsStr += editCheckBox(name, variableName, listIsEnabled)
|
||||||
name = translate[name]
|
|
||||||
CWlistsStr += editCheckBox(name, variableName, listIsEnabled)
|
|
||||||
if CWlistsStr:
|
if CWlistsStr:
|
||||||
idx = 'Add content warnings for the following sites'
|
idx = 'Add content warnings for the following sites'
|
||||||
editProfileForm += \
|
editProfileForm += \
|
||||||
|
|
Loading…
Reference in New Issue