Fix missing info for when interrupting pomodoro

This commit is contained in:
benjamin melançon 2020-07-05 20:50:42 -04:00
parent 62560ad8db
commit 501784c562

View file

@ -49,7 +49,8 @@ def main():
record_task(whatdid, start) record_task(whatdid, start)
continue continue
except KeyboardInterrupt: 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() choice = input('[y]/n: ').strip()
if choice.lower() in ('y', 'yes', ''): if choice.lower() in ('y', 'yes', ''):
whatdid = pomodoro_prompt_report(whatnext) whatdid = pomodoro_prompt_report(whatnext)