Made rows names to be less retarded.
This commit is contained in:
parent
bab9fda3fb
commit
dd138dcaca
@ -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("┗", "┻", "━", "┛")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user