Use central string minutes formatting function in more places

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

View file

@ -82,7 +82,7 @@ def main():
print('Working on: ', whatnext)
while datetime.now(pytz.utc) <= end:
to_go = end-datetime.now(pytz.utc)
print('\r', str(to_go).split('.')[0], sep='', end='')
print('\r', str_minutes(to_go), sep='', end='')
time.sleep(1)
whatdid = pomodoro_prompt_report(whatnext)
record_task(whatdid, start)