feature/migrations, closes #19 #20
|
@ -60,6 +60,9 @@ class SchedulerPlugin(Plugin):
|
|||
self.blueprint.add_url_rule("/cron", view_func=__view_func)
|
||||
|
||||
def run_tasks(self):
|
||||
from ..database import db
|
||||
self = db.session.merge(self)
|
||||
|
||||
changed = False
|
||||
now = datetime.now()
|
||||
status = self.get_setting("status", default=dict())
|
||||
|
|
Loading…
Reference in New Issue