Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
Rename old variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Sassnowski committed May 17, 2018
1 parent f0b6b57 commit 46372c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ def add_record(start_time, end_time, duration, favorite, project_id, task_id, co
start_time = dates.parse(start_time)

if start_time is None:
print_error('Could not parse start date \'%s\'' % start)
print_error('Could not parse start date')
return

if duration:
# We assume that any duration should be added to the start time
# since it doesn't make sence to have the end time be before the
# start time
end_time = dates.parse('+' + duration, start)
end_time = dates.parse('+' + duration, start_time)
else:
end_time = dates.parse(end_time)

Expand Down

0 comments on commit 46372c3

Please sign in to comment.