Oct-10-2022, 03:36 PM
(This post was last modified: Oct-10-2022, 03:36 PM by deanhystad.)
You create a schedule
You read in reminders from the database. For each reminder you add an event to the schedule (enter or enterabs).
If your program creates a new reminder it adds the reminder to the database and adds an event to the schedule.
Inside your while True: loop you call schedule.run(blocking=False)
When it is time to execute a reminder event, the schedule will do it automatically.
You read in reminders from the database. For each reminder you add an event to the schedule (enter or enterabs).
If your program creates a new reminder it adds the reminder to the database and adds an event to the schedule.
Inside your while True: loop you call schedule.run(blocking=False)
When it is time to execute a reminder event, the schedule will do it automatically.