Improve no colors
This commit is contained in:
parent
3c89b2b662
commit
5f50429a2d
|
@ -181,6 +181,9 @@ class History:
|
|||
print('-'.center(rows-1, '-'))
|
||||
print('|', end='')
|
||||
printKey = t[2][0:8] + '\u2026\u2026' + t[2][-3:]
|
||||
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, '-'))
|
||||
|
|
Reference in New Issue