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):