replaced the title text with an icon to save space

This commit is contained in:
Tobias Schmidl 2021-03-01 09:40:15 +01:00
parent bc925ef767
commit 87736b6886

View file

@ -16,7 +16,7 @@ import functools
import locale import locale
from datetime import datetime, timedelta from datetime import datetime, timedelta
from timew import TimeWarrior from timew import TimeWarrior # type: ignore
TW = TimeWarrior() TW = TimeWarrior()
TIMEFORMATTER = '%Y%m%dT%H%M%S%z' TIMEFORMATTER = '%Y%m%dT%H%M%S%z'
@ -35,7 +35,7 @@ RESULTS = sorted(map(
}, TW.summary()), }, TW.summary()),
key=lambda x: x['start']) key=lambda x: x['start'])
print("TW: {}\n-----".format( print(" {}\n-----".format(
str(functools.reduce(lambda total, x: total + x['end'] - x['start'], RESULTS, timedelta())).split(sep='.', maxsplit=1)[0] str(functools.reduce(lambda total, x: total + x['end'] - x['start'], RESULTS, timedelta())).split(sep='.', maxsplit=1)[0]
)) ))
print( print(