From 46372c330a39d0da4f27953cc44a4204b41c3dfb Mon Sep 17 00:00:00 2001 From: Kai Sassnowski Date: Thu, 17 May 2018 20:18:16 +0200 Subject: [PATCH] Rename old variable names --- cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli.py b/cli.py index 995f8f9..d9c26e8 100644 --- a/cli.py +++ b/cli.py @@ -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)