From 63e68c7af3cf3b1b6e465bb05587a51804bfba79 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 21 Oct 2021 18:14:05 +0100 Subject: [PATCH] Use name field --- webapp_profile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp_profile.py b/webapp_profile.py index 15320c01c..aab8eccb5 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -1677,7 +1677,9 @@ def _htmlEditProfileFiltering(baseDir: str, nickname: str, domain: str, CWlistsStr = '' for listName, item in CWlists.items(): - name = listName + if not item.get('name'): + continue + name = item['name'] variableName = 'list' + name.replace(' ', '').replace("'", '') if listName in listsEnabled: listIsEnabled = True