Fix minor mistakes in source files from last commits

This commit is contained in:
Veronica Berglyd Olsen
2023-06-13 22:57:19 +02:00
parent 90012aff17
commit 61535b6ab6
5 changed files with 12 additions and 14 deletions
+1 -1
View File
@@ -517,7 +517,7 @@ class NWIndex:
"""Count the number of words in the novel project."""
wCount = 0
for _, _, hItem in self._itemIndex.iterNovelStructure(skipExcl=skipExcl):
wCount += hItem.wordCount if isinstance(hItem, IndexHeading) else 0
wCount += hItem.wordCount
return wCount
def getNovelTitleCounts(self, skipExcl: bool = True) -> list[int]: