mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
d8b2c396e9
commit
d2a4444c7e
|
@ -959,3 +959,9 @@ def addCWfromLists(postJsonObject: {}, CWlists: {}, translate: {},
|
||||||
if cw:
|
if cw:
|
||||||
postJsonObject['object']['summary'] = cw
|
postJsonObject['object']['summary'] = cw
|
||||||
postJsonObject['object']['sensitive'] = True
|
postJsonObject['object']['sensitive'] = True
|
||||||
|
|
||||||
|
|
||||||
|
def getCWlistVariable(listName: str) -> str:
|
||||||
|
"""Returns the variable associated with a CW list
|
||||||
|
"""
|
||||||
|
return 'list' + listName.replace(' ', '').replace("'", '')
|
||||||
|
|
|
@ -69,6 +69,7 @@ from webapp_utils import endEditSection
|
||||||
from blog import getBlogAddress
|
from blog import getBlogAddress
|
||||||
from webapp_post import individualPostAsHtml
|
from webapp_post import individualPostAsHtml
|
||||||
from webapp_timeline import htmlIndividualShare
|
from webapp_timeline import htmlIndividualShare
|
||||||
|
from blocking import getCWlistVariable
|
||||||
|
|
||||||
|
|
||||||
def htmlProfileAfterSearch(cssCache: {},
|
def htmlProfileAfterSearch(cssCache: {},
|
||||||
|
@ -1678,7 +1679,7 @@ def _htmlEditProfileFiltering(baseDir: str, nickname: str, domain: str,
|
||||||
|
|
||||||
CWlistsStr = ''
|
CWlistsStr = ''
|
||||||
for name, item in CWlists.items():
|
for name, item in CWlists.items():
|
||||||
variableName = 'list' + name.replace(' ', '').replace("'", '')
|
variableName = getCWlistVariable(name)
|
||||||
listIsEnabled = False
|
listIsEnabled = False
|
||||||
if listsEnabled:
|
if listsEnabled:
|
||||||
if name in listsEnabled:
|
if name in listsEnabled:
|
||||||
|
|
Loading…
Reference in New Issue