From dd138dcaca1df3eedc19543bfc7909c5648740ac Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Wed, 8 Jul 2020 02:17:11 +0400 Subject: [PATCH] Made rows names to be less retarded. --- piggybank/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piggybank/__main__.py b/piggybank/__main__.py index 85883e9..df84d1f 100644 --- a/piggybank/__main__.py +++ b/piggybank/__main__.py @@ -104,10 +104,10 @@ def print_summary(pb: PiggyBank) -> None: print(f"┃{'Counts':^27}┃{'┃'.join(f'{c:^12}' for c in s)}┃") print_separator("┣", "╋", "╋", "┫") s = currency * s - print(f"┃{'Sums in currency':^27}┃{'┃'.join(f'{c/100:^12.2f}' for c in s)}┃") + print(f"┃{'Sums':^27}┃{'┃'.join(f'{c/100:^12.2f}' for c in s)}┃") print_separator("┣", "╋", "┻", "┫") s = sum(s) - print(f"┃{'Total in currency':^27}┃{s/100:^{12*len(currency)+len(currency)-1}.2f}┃") + print(f"┃{'Total':^27}┃{s/100:^{12*len(currency)+len(currency)-1}.2f}┃") print_separator("┗", "┻", "━", "┛")