mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -07:00
notes
This commit is contained in:
parent
26b6dc6d4f
commit
0f15f474bb
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ from schema.settings import SiteSettings
|
||||||
from db.database import db
|
from db.database import db
|
||||||
from utils.post_webhooks import post_webhooks
|
from utils.post_webhooks import post_webhooks
|
||||||
|
|
||||||
|
# TODO Fix Scheduler
|
||||||
@scheduler.scheduled_job(trigger="interval", minutes=15)
|
@scheduler.scheduled_job(trigger="interval", minutes=15)
|
||||||
def update_webhook_schedule():
|
def update_webhook_schedule():
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -9,7 +9,7 @@ from services.meal_services import get_todays_meal
|
||||||
|
|
||||||
def post_webhooks():
|
def post_webhooks():
|
||||||
session = create_session()
|
session = create_session()
|
||||||
all_settings = db.get(session, "main")
|
all_settings = db.get(session, 1)
|
||||||
all_settings = SiteSettings(**all_settings)
|
all_settings = SiteSettings(**all_settings)
|
||||||
|
|
||||||
if all_settings.webhooks.enabled:
|
if all_settings.webhooks.enabled:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue