mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
move recently added to routines
This commit is contained in:
+3
-3
@@ -9,10 +9,10 @@ class CronJob(ABC):
|
||||
A cron job that will be run on a regular interval.
|
||||
"""
|
||||
|
||||
def __init__(self, name: str, hours: int):
|
||||
self.name = name
|
||||
self.hours = hours
|
||||
name: str
|
||||
hours: int = 1
|
||||
|
||||
def __init__(self):
|
||||
schedule.every(self.hours).hours.do(self.run)
|
||||
|
||||
@abstractmethod
|
||||
|
||||
Reference in New Issue
Block a user