forked from indymedia/epicyon
Don't check file
parent
b2e1b2e920
commit
512d1811c5
7
utils.py
7
utils.py
|
@ -38,10 +38,9 @@ def setHashtagCategory(baseDir: str, hashtag: str, category: str) -> bool:
|
||||||
if not os.path.isfile(hashtagFilename):
|
if not os.path.isfile(hashtagFilename):
|
||||||
return False
|
return False
|
||||||
categoryFilename = baseDir + '/tags/' + hashtag + '.category'
|
categoryFilename = baseDir + '/tags/' + hashtag + '.category'
|
||||||
if os.path.isfile(categoryFilename):
|
with open(categoryFilename, 'w+') as fp:
|
||||||
with open(categoryFilename, 'w+') as fp:
|
fp.write(category)
|
||||||
fp.write(category)
|
return True
|
||||||
return True
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue