From c1886b96fb176cc7e22e47dde4b4dec8aa11663d Mon Sep 17 00:00:00 2001 From: Doman Date: Thu, 3 Feb 2022 14:04:08 +0100 Subject: [PATCH] 1.3.1 - 0.2f... --- fasttyper/config.py | 16 ++++++++-------- setup.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/fasttyper/config.py b/fasttyper/config.py index fb55c3e..50b840a 100644 --- a/fasttyper/config.py +++ b/fasttyper/config.py @@ -3,22 +3,22 @@ class Config: "user_input_valid_color": 3, "user_input_invalid_color": 2, "reference_text_color": 8, - "stats_template": "\n\nwpm: {stats.wpm}\ntime: {stats.total_seconds}s", + "stats_template": "\n\nwpm: {stats.wpm:0.2f}\ntime: {stats.total_seconds:0.2f}s", "stats_color": 5, "summary_template": ( - "WPM: {stats.wpm}\n" - "CPM: {stats.cpm}\n" - "RAW WPM: {stats.raw_wpm}\n" - "RAW CPM: {stats.raw_cpm}\n" - "total seconds: {stats.total_seconds}\n" - "total minutes: {stats.total_minutes}\n" + "WPM: {stats.wpm:0.2f}\n" + "CPM: {stats.cpm:0.2f}\n" + "RAW WPM: {stats.raw_wpm:0.2f}\n" + "RAW CPM: {stats.raw_cpm:0.2f}\n" + "total seconds: {stats.total_seconds:0.2f}\n" + "total minutes: {stats.total_minutes:0.2f}\n" "correct words: {stats.correct_words}\n" "correct chars: {stats.correct_chars}\n" "incorrect words: {stats.incorrect_words}\n" "incorrect chars: {stats.incorrect_chars}\n" "total words: {stats.total_words}\n" "total chars: {stats.total_chars}\n" - "accuracy: {stats.accuracy}%" + "accuracy: {stats.accuracy:0.2f}%" ), "summary_datafile": "~/.cache/fasttyper/datafile.csv", } diff --git a/setup.py b/setup.py index 66cffe1..7fc1f3e 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh: setup( name="fasttyper", - version="1.3.0", + version="1.3.1", author="Piotr Domanski", author_email="pi.domanski@gmail.com", description="Minimalistic typing exercise",