Bugfix for tags #2
This commit is contained in:
parent
1bd24c2d5b
commit
b1adf4b485
@ -239,6 +239,9 @@ if options.tags:
|
|||||||
for tag in taglist:
|
for tag in taglist:
|
||||||
tagindex.append([tag.strip(), entry])
|
tagindex.append([tag.strip(), entry])
|
||||||
content.close()
|
content.close()
|
||||||
|
if not os.path.exist(os.path.join(entries_dir, "tags"), "w"):
|
||||||
|
tagfile = open(os.path.join(entries_dir, "tags"), "w")
|
||||||
|
tagfile.close()
|
||||||
tagfile = open(os.path.join(entries_dir, "tags"), "w")
|
tagfile = open(os.path.join(entries_dir, "tags"), "w")
|
||||||
pickle.dump(tagindex, tagfile)
|
pickle.dump(tagindex, tagfile)
|
||||||
tagfile.close()
|
tagfile.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user