mirror of https://gitlab.com/bashrc2/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):
|
||||
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue