Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed notifications if the user's machine was powered on after the scheduled time had past #50

Merged
merged 5 commits into from
Oct 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions leeteasy/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def execute_start(time, difficulty, sleep_duration) -> None:

Example: leeteasy 13:15
"""
TimeValidator.validate(time)
valid_time = TimeValidator.validate(time)

if datetime.now().time() > TimeValidator.validate(time): #To notify users of missed notifications
if datetime.now().time() > valid_time: #To notify users of missed notifications
sudiptob2 marked this conversation as resolved.
Show resolved Hide resolved
Notifier.notify()

Notifier.target_difficulty.append(difficulty)
Expand Down