yapf'd timewarrior.py

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

View file

@ -11,7 +11,6 @@
# <bitbar.dependencies>python,timew</bitbar.dependencies> # <bitbar.dependencies>python,timew</bitbar.dependencies>
# <bitbar.abouturl>https://github.com/schtobia/argos-timewarrior/blob/master/timewarrior.py</bitbar.abouturl> # <bitbar.abouturl>https://github.com/schtobia/argos-timewarrior/blob/master/timewarrior.py</bitbar.abouturl>
import functools import functools
import locale import locale
from datetime import datetime, timedelta from datetime import datetime, timedelta
@ -36,8 +35,8 @@ RESULTS = sorted(map(
key=lambda x: x['start']) key=lambda x: x['start'])
print("{}\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(
" | font=monospace | size=8\n".join( " | font=monospace | size=8\n".join(
map( map(