Add a break following a completed pomodoro
This commit is contained in:
parent
d7e9c6c2ef
commit
ce5146b70b
1 changed files with 5 additions and 0 deletions
|
@ -87,6 +87,11 @@ def main():
|
|||
whatdid = pomodoro_prompt_report(whatnext)
|
||||
record_task(whatdid, start)
|
||||
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
|
||||
except KeyboardInterrupt:
|
||||
time_spent = str_minutes(datetime.now(pytz.utc) - start)
|
||||
|
|
Loading…
Reference in a new issue