From 13f193bb13fcd09d7aa0c20495ae645f4fae2f39 Mon Sep 17 00:00:00 2001 From: mlncn Date: Sun, 2 May 2021 18:27:25 -0400 Subject: [PATCH] Keep names short and consistent --- pomodoroprompt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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