Strip name

merge-requests/6/head
Bob Mottram 2019-12-12 18:17:43 +00:00
parent 6df175a641
commit 619cc2b9cb
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ def storeHashTags(baseDir: str,postJsonObject: {}) -> None:
continue continue
if not tag.get('name'): if not tag.get('name'):
continue continue
tagName=tag['name'].replace('#','').replace("'",'') tagName=tag['name'].replace('#','').strip()
tagsFilename=tagsDir+'/'+tagName+'.txt' tagsFilename=tagsDir+'/'+tagName+'.txt'
postUrl=postJsonObject['id'].replace('/activity','').replace('/','#') postUrl=postJsonObject['id'].replace('/activity','').replace('/','#')
if not os.path.isfile(tagsFilename): if not os.path.isfile(tagsFilename):