move recently added to routines

This commit is contained in:
cwilvx
2024-11-17 20:08:04 +03:00
parent 498d0688b0
commit 333fd6603f
14 changed files with 554 additions and 213 deletions
+3 -3
View File
@@ -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