From f589b31818f247d8eee5aa928e93b00f93f47963 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 27 Sep 2021 21:45:09 +0100 Subject: [PATCH] Debug --- blocking.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/blocking.py b/blocking.py index 4fc2b9d72..ff25d079b 100644 --- a/blocking.py +++ b/blocking.py @@ -467,6 +467,7 @@ def mutePost(baseDir: str, nickname: str, domain: str, port: int, postJsonObject = loadJson(postFilename) if not postJsonObject: return + print('mutePost: ' + str(postJsonObject)) if hasObjectDict(postJsonObject): domainFull = getFullDomain(domain, port) @@ -538,10 +539,6 @@ def mutePost(baseDir: str, nickname: str, domain: str, port: int, if recentPostsCache['html'].get(postId): del recentPostsCache['html'][postId] print('MUTE: ' + postId + ' removed cached html') - if recentPostsCache.get('json'): - if recentPostsCache['json'].get(postId): - del recentPostsCache['json'][postId] - print('MUTE: ' + postId + ' removed cached json') def unmutePost(baseDir: str, nickname: str, domain: str, port: int, @@ -619,10 +616,6 @@ def unmutePost(baseDir: str, nickname: str, domain: str, port: int, if recentPostsCache['html'].get(postId): del recentPostsCache['html'][postId] print('UNMUTE: ' + postId + ' removed cached html') - if recentPostsCache.get('json'): - if recentPostsCache['json'].get(postId): - del recentPostsCache['json'][postId] - print('UNMUTE: ' + postId + ' removed cached json') def outboxMute(baseDir: str, httpPrefix: str,