Improve no colors

This commit is contained in:
poka 2020-11-28 06:31:08 +01:00
parent 3c89b2b662
commit 5f50429a2d
1 changed files with 4 additions and 1 deletions

View File

@ -181,7 +181,10 @@ class History:
print('-'.center(rows-1, '-'))
print('|', end='')
printKey = t[2][0:8] + '\u2026\u2026' + t[2][-3:]
print(colored(" {: <18} | {: <14} | {: <7} | {: <7} | {: <30}".format(date, printKey, amount, amountUD, comment), color))
if noColors:
print(" {: <18} | {: <14} | {: <7} | {: <7} | {: <30}".format(date, printKey, amount, amountUD, comment))
else:
print(colored(" {: <18} | {: <14} | {: <7} | {: <7} | {: <30}".format(date, printKey, amount, amountUD, comment), color))
print('|', end='')
print('-'.center(rows-1, '-'))
print('|', end='')