From fc267f8b9179397ddab5ad2a048d238abe7d4913 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 6 Oct 2020 11:37:06 +0100 Subject: [PATCH] Unique entries in list --- newswire.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newswire.py b/newswire.py index 24ce4fc3..5becaefc 100644 --- a/newswire.py +++ b/newswire.py @@ -213,7 +213,8 @@ def updateNewswireModerationQueue(baseDir: str, handle: str, open(moderationStatusFilename).read(): if moderationDict.get(nickname): moderationDict[nickname] = [] - moderationDict[nickname].append(fullPostFilename) + if fullPostFilename not in moderationDict[nickname]: + moderationDict[nickname].append(fullPostFilename) ctr += 1 if ctr >= maxBlogsPerAccount: