yapf'd timewarrior.py
This commit is contained in:
parent
87736b6886
commit
9241593527
1 changed files with 2 additions and 3 deletions
|
@ -11,7 +11,6 @@
|
|||
# <bitbar.dependencies>python,timew</bitbar.dependencies>
|
||||
# <bitbar.abouturl>https://github.com/schtobia/argos-timewarrior/blob/master/timewarrior.py</bitbar.abouturl>
|
||||
|
||||
|
||||
import functools
|
||||
import locale
|
||||
from datetime import datetime, timedelta
|
||||
|
@ -36,8 +35,8 @@ RESULTS = sorted(map(
|
|||
key=lambda x: x['start'])
|
||||
|
||||
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(
|
||||
" | font=monospace | size=8\n".join(
|
||||
map(
|
||||
|
|
Loading…
Reference in a new issue