Bug fixes and features #1

Merged
witten merged 12 commits from deroshkin/novel-stats-fork:deroshkin_branch into master 2021-10-22 20:05:18 +00:00
1 changed files with 0 additions and 4 deletions
Showing only changes of commit 71fb8cfd0c - Show all commits

View File

@ -2,8 +2,6 @@
import collections
import os
import string
import sys
@ -45,8 +43,6 @@ def main():
chapter_number = int(line[len(CHAPTER_MARKER):])
word_count_by_chapter[chapter_number] = 1 # Start at one, because the chapter number itself counts as a word.
if chapter_number in status_by_chapter:
word_count_by_status[chapter_status] += 1
elif line.startswith(STATUS_MARKER):
status_by_chapter[chapter_number] = line[len(STATUS_MARKER):].strip('()\n')
elif line.startswith(ACT_MARKER):