diff --git a/pomodoroprompt.py b/pomodoroprompt.py index 39c8b89..605acd4 100644 --- a/pomodoroprompt.py +++ b/pomodoroprompt.py @@ -74,8 +74,8 @@ def record_task(whatnext, whatdid, start, end=None): log.writerow(['started', 'recorded', 'description', 'intention']) with open(filepath, 'a', newline='') as csvfile: - timewriter = csv.writer(csvfile) - timewriter.writerow([start, end, whatdid, whatnext]) + log = csv.writer(csvfile) + log.writerow([start, end, whatdid, whatnext]) def str_minutes(time_diff): """ Return at least whole seconds from a time difference