From 13ad1e57fbb243c63687ed46eb13227318c68ff0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Dec 2020 12:38:47 +0000 Subject: [PATCH] Simplify --- webapp_moderation.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/webapp_moderation.py b/webapp_moderation.py index 3eafc873a..474988dd8 100644 --- a/webapp_moderation.py +++ b/webapp_moderation.py @@ -199,14 +199,12 @@ def htmlModerationInfo(cssCache: {}, translate: {}, infoForm += '' infoForm += '
' - modAccount = isModerator(baseDir, acctNickname) - if modAccount: - infoForm += '' - infoForm += acctNickname + if isModerator(baseDir, acctNickname) + infoForm += '' + acctNickname + '' + else: + infoForm += acctNickname if isEditor(baseDir, acctNickname): infoForm += ' ✍' - if modAccount: - infoForm += '' infoForm += '
\n\n' col += 1 if col == cols: