Add novel tree method to refresh metadata for item

This commit is contained in:
Veronica Berglyd Olsen
2022-11-14 16:59:04 +01:00
parent e9b603d5a5
commit e52d8d9ff7
4 changed files with 62 additions and 19 deletions
+5
View File
@@ -501,6 +501,11 @@ class NWIndex:
yield f"{tHandle}:{sTitle}", tHandle, sTitle, hItem
return
def getItemData(self, tHandle):
"""Get the index data for a given item.
"""
return self._itemIndex[tHandle]
def getNovelWordCount(self, skipExcl=True):
"""Count the number of words in the novel project.
"""