mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
fix(totals.py): return all info when no arguments are provided
Signed-off-by: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
This commit is contained in:
parent
75d037d353
commit
99d18f42bb
1 changed files with 3 additions and 0 deletions
|
@ -100,6 +100,9 @@ def calculate_totals(input_stream):
|
|||
if "start" in j[0]:
|
||||
if report_start_utc is not None:
|
||||
j[0]["start"] = max(report_start_utc, datetime.datetime.strptime(j[0]["start"], DATEFORMAT).replace(tzinfo=from_zone)).strftime(DATEFORMAT)
|
||||
else:
|
||||
report_start_utc = datetime.datetime.strptime(j[0]["start"], DATEFORMAT).replace(tzinfo=from_zone)
|
||||
report_start = report_start_utc.astimezone(tz=to_zone)
|
||||
else:
|
||||
return ["Cannot display an past open range"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue