Use actual novel word count in project details, and update index test

This commit is contained in:
Veronica K. B. Olsen
2021-01-11 21:02:45 +01:00
parent b5e11f2303
commit 981e26e1b6
3 changed files with 114 additions and 34 deletions
+3 -2
View File
@@ -168,10 +168,11 @@ class GuiProjectDetailsMain(QWidget):
# Stats
# =====
hCounts = self.theIndex.getNovelCounts()
hCounts = self.theIndex.getNovelTitleCounts()
nwCount = self.theIndex.getNovelWordCount()
self.wordCountLbl = QLabel("<b>Words:</b>")
self.wordCountVal = QLabel(f"{self.theProject.currWCount:n}")
self.wordCountVal = QLabel(f"{nwCount:n}")
self.chapCountLbl = QLabel("<b>Chapters:</b>")
self.chapCountVal = QLabel(f"{hCounts[2]:n}")