From 501784c5624f75f9cb222d19add51d8b04a484c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Sun, 5 Jul 2020 20:50:42 -0400 Subject: [PATCH] Fix missing info for when interrupting pomodoro --- pomodoroprompt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pomodoroprompt.py b/pomodoroprompt.py index eaf039a..ad307be 100644 --- a/pomodoroprompt.py +++ b/pomodoroprompt.py @@ -49,7 +49,8 @@ def main(): record_task(whatdid, start) continue except KeyboardInterrupt: - print('\n{} time spent, save?'.format(str(diff).split('.')[0])) + time_spent = datetime.now(pytz.utc) - start + print('\n{} time spent, save?'.format(str(time_spent).split('.')[0])) choice = input('[y]/n: ').strip() if choice.lower() in ('y', 'yes', ''): whatdid = pomodoro_prompt_report(whatnext)