We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b0aad2 + 0979488 commit dc1e8cfCopy full SHA for dc1e8cf
tomato.py
@@ -59,7 +59,10 @@ def tomato(minutes, notify_msg):
59
print('')
60
break
61
62
- countdown = '{}:{} ⏰'.format(int(left_seconds / 60), int(left_seconds % 60))
+ seconds_slot = int(left_seconds % 60)
63
+ seconds_str = str(seconds_slot) if seconds_slot >= 10 else '0{}'.format(seconds_slot)
64
+
65
+ countdown = '{}:{} ⏰'.format(int(left_seconds / 60), seconds_str)
66
duration = min(minutes, 25)
67
progressbar(diff_seconds, minutes * 60, duration, countdown)
68
time.sleep(1)
0 commit comments