From 04ab7c67d88d684e066b3d9067ca221b1bb7dbd2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 25 Nov 2020 11:09:16 +0000 Subject: [PATCH] Comments --- webapp_hashtagswarm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp_hashtagswarm.py b/webapp_hashtagswarm.py index e5150666..b07d739d 100644 --- a/webapp_hashtagswarm.py +++ b/webapp_hashtagswarm.py @@ -80,6 +80,8 @@ def htmlHashTagSwarm(baseDir: str, actor: str, translate: {}) -> str: tagSwarm = [] domainHistogram = {} + # Load the blocked hashtags into memory. + # This avoids needing to repeatedly load the blocked file for each hashtag blockedStr = '' globalBlockingFilename = baseDir + '/accounts/blocking.txt' if os.path.isfile(globalBlockingFilename):