mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -07:00
fixes #461
This commit is contained in:
parent
8982422381
commit
d80f52f097
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
import json
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from mealie.db.database import db
|
from mealie.db.database import db
|
||||||
from mealie.db.db_setup import create_session
|
from mealie.db.db_setup import create_session
|
||||||
|
@ -20,7 +22,7 @@ def post_webhooks(group: int, session: Session = None):
|
||||||
return
|
return
|
||||||
|
|
||||||
for url in group_settings.webhook_urls:
|
for url in group_settings.webhook_urls:
|
||||||
requests.post(url, json=todays_recipe.json())
|
requests.post(url, json=json.loads(todays_recipe.json()))
|
||||||
|
|
||||||
create_scheduled_event("Meal Plan Webhook", f"Meal plan webhook executed for group '{group}'")
|
create_scheduled_event("Meal Plan Webhook", f"Meal plan webhook executed for group '{group}'")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue