Add percentages to per-status totals.

This commit is contained in:
Dan Helfman 2021-10-01 12:04:37 -07:00
parent 6422d3f800
commit cdb9187809
2 changed files with 3 additions and 3 deletions

View File

@ -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
```

View File

@ -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))