Avoid multiple stores

merge-requests/8/head
Bob Mottram 2020-10-25 14:21:29 +00:00
parent 44d48edbc0
commit cc5884a274
1 changed files with 5 additions and 2 deletions

View File

@ -638,9 +638,12 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
else:
content += hashtagHtml
blog['object']['content'] = content
storeHashTags(baseDir, 'news', blog)
newswire[originalDateStr][6] = hashtags
# update the newswire tags if new ones have been found by
# newswireHashtagProcessing
for tag in hashtags:
if tag not in newswire[originalDateStr][6]:
newswire[originalDateStr][6].append(tag)
storeHashTags(baseDir, 'news', blog)