Skip to content

Commit bd5b663

Browse files
committed
Notification added for sleep time
1 parent 2a0ffe8 commit bd5b663

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

leeteasy/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ def execute_start(time, difficulty, sleep_duration) -> None:
3131
3232
Example: leeteasy 13:15
3333
"""
34-
TimeValidator.validate(time)
34+
valid_time = TimeValidator.validate(time)
3535

36-
if datetime.now().time() > TimeValidator.validate(time): #To notify users of missed notifications
36+
if datetime.now().time() > valid_time: #To notify users of missed notifications
3737
Notifier.notify()
3838

3939
Notifier.target_difficulty.append(difficulty)

0 commit comments

Comments
 (0)