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.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(
|
||||||
|
|
Loading…
Reference in a new issue