Browse Source

Add percentages to per-status totals.

master
Dan Helfman 2 weeks ago
parent
commit
cdb9187809
  1. 4
      README.md
  2. 2
      novel_stats/novel_stats.py

4
README.md

@ -22,8 +22,8 @@ chapter 5: 136 words (drafted)
act 1: 187 words (~34%)
act 2: 212 words (~39%)
act 3: 137 words (~25%)
drafted: 239 words
dev edited: 83 words
drafted: 239 words (~44%)
dev edited: 83 words (~15%)
total: 539 words
```

2
novel_stats/novel_stats.py

@ -89,7 +89,7 @@ def main():
print('act {}: {} words (~{}%)'.format(act_number, act_word_count, act_word_count * 100 // total_word_count))
for status, status_word_count in word_count_by_status.items():
print('{}: {} words'.format(status, status_word_count))
print('{}: {} words (~{}%)'.format(status, status_word_count, status_word_count * 100 // total_word_count))
print('total: {} words'.format(total_word_count))

Loading…
Cancel
Save