Merge pull request #558 from vkbo/index_note_bug

Duplicate index entry issue
This commit is contained in:
Veronica K. Berglyd Olsen authored and GitHub committed 2021-01-11 21:16:14 +01:00
commit b5631aa1df
1 file changed
+2
+2
View File
@@ -277,10 +277,12 @@ class NWIndex():
"updated" : round(time()),
}
if itemLayout == nwItemLayout.NOTE:
self.novelIndex.pop(tHandle, None)
self.noteIndex[tHandle] = {}
isNovel = False
else:
self.novelIndex[tHandle] = {}
self.noteIndex.pop(tHandle, None)
isNovel = True
# Also clear references to file in tag index