From 20c55ef06cebefac24fae91184981e2a44d03b4f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 6 Oct 2020 17:20:37 +0100 Subject: [PATCH] Json variable --- webinterface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webinterface.py b/webinterface.py index 19d392952..2e404e278 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1283,7 +1283,7 @@ def htmlNewswireModeration(baseDir: str, path: str, translate: {}) -> str: # load the file containing newswire posts to be moderated newswireModerationFilename = baseDir + '/accounts/newswiremoderation.txt' moderateJson = loadJson(newswireModerationFilename) - if not newswireJson: + if not moderateJson: return '' # get the nickname and actor path of the moderator @@ -1299,8 +1299,8 @@ def htmlNewswireModeration(baseDir: str, path: str, translate: {}) -> str: # details of this post title = item[0] url = item[1] - nick = item[2] - status = item[3] + # nick = item[2] + # status = item[3] postFilename = item[4].replace('/', '#') # create the html for this post