Add a break following a completed pomodoro

This commit is contained in:
benjamin melançon 2020-07-06 09:28:57 -04:00
parent d7e9c6c2ef
commit ce5146b70b

View file

@ -87,6 +87,11 @@ def main():
whatdid = pomodoro_prompt_report(whatnext) whatdid = pomodoro_prompt_report(whatnext)
record_task(whatdid, start) record_task(whatdid, start)
log_step('Completed pomodoro: ' + whatdid, start, True) log_step('Completed pomodoro: ' + whatdid, start, True)
end = datetime.now(pytz.utc) + timedelta(minutes=SHORT_MIN)
while datetime.now(pytz.utc) <= end:
to_go = end-datetime.now(pytz.utc)
print('\r', str_minutes(to_go), sep='', end='')
time.sleep(1)
continue continue
except KeyboardInterrupt: except KeyboardInterrupt:
time_spent = str_minutes(datetime.now(pytz.utc) - start) time_spent = str_minutes(datetime.now(pytz.utc) - start)