Don't check file

main
Bob Mottram 2020-12-02 11:23:58 +00:00
parent b2e1b2e920
commit 512d1811c5
1 changed files with 3 additions and 4 deletions

View File

@ -38,10 +38,9 @@ def setHashtagCategory(baseDir: str, hashtag: str, category: str) -> bool:
if not os.path.isfile(hashtagFilename):
return False
categoryFilename = baseDir + '/tags/' + hashtag + '.category'
if os.path.isfile(categoryFilename):
with open(categoryFilename, 'w+') as fp:
fp.write(category)
return True
with open(categoryFilename, 'w+') as fp:
fp.write(category)
return True
return False