forked from witten/novel-stats
Add percentages to per-status totals.
This commit is contained in:
parent
6422d3f800
commit
cdb9187809
|
@ -22,8 +22,8 @@ chapter 5: 136 words (drafted)
|
||||||
act 1: 187 words (~34%)
|
act 1: 187 words (~34%)
|
||||||
act 2: 212 words (~39%)
|
act 2: 212 words (~39%)
|
||||||
act 3: 137 words (~25%)
|
act 3: 137 words (~25%)
|
||||||
drafted: 239 words
|
drafted: 239 words (~44%)
|
||||||
dev edited: 83 words
|
dev edited: 83 words (~15%)
|
||||||
total: 539 words
|
total: 539 words
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ def main():
|
||||||
print('act {}: {} words (~{}%)'.format(act_number, act_word_count, act_word_count * 100 // total_word_count))
|
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():
|
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))
|
print('total: {} words'.format(total_word_count))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue