Merge pull request #558 from vkbo/index_note_bug
Duplicate index entry issue
This commit is contained in:
@@ -277,10 +277,12 @@ class NWIndex():
|
|||||||
"updated" : round(time()),
|
"updated" : round(time()),
|
||||||
}
|
}
|
||||||
if itemLayout == nwItemLayout.NOTE:
|
if itemLayout == nwItemLayout.NOTE:
|
||||||
|
self.novelIndex.pop(tHandle, None)
|
||||||
self.noteIndex[tHandle] = {}
|
self.noteIndex[tHandle] = {}
|
||||||
isNovel = False
|
isNovel = False
|
||||||
else:
|
else:
|
||||||
self.novelIndex[tHandle] = {}
|
self.novelIndex[tHandle] = {}
|
||||||
|
self.noteIndex.pop(tHandle, None)
|
||||||
isNovel = True
|
isNovel = True
|
||||||
|
|
||||||
# Also clear references to file in tag index
|
# Also clear references to file in tag index
|
||||||
|
|||||||
Reference in New Issue
Block a user