From 619cc2b9cb29dad32ee31ceb7c80846b70f96ffc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 12 Dec 2019 18:17:43 +0000 Subject: [PATCH] Strip name --- inbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 859413de..59d4ab9c 100644 --- a/inbox.py +++ b/inbox.py @@ -84,7 +84,7 @@ def storeHashTags(baseDir: str,postJsonObject: {}) -> None: continue if not tag.get('name'): continue - tagName=tag['name'].replace('#','').replace("'",'') + tagName=tag['name'].replace('#','').strip() tagsFilename=tagsDir+'/'+tagName+'.txt' postUrl=postJsonObject['id'].replace('/activity','').replace('/','#') if not os.path.isfile(tagsFilename):