also publish

This commit is contained in:
Gaël
2025-11-17 13:23:48 +01:00
parent 85b4ea9e24
commit 80d7c45cfb

View File

@@ -967,7 +967,7 @@ async def run_weekly():
# Create + publish + email # Create + publish + email
created = ghost.create_post_html(title, html_body, status="draft", feature_image=feature) created = ghost.create_post_html(title, html_body, status="draft", feature_image=feature)
#ghost.publish_post(created["id"], created["updated_at"], newsletter_slug=newsletter_slug) ghost.publish_post(created["id"], created["updated_at"], newsletter_slug=newsletter_slug)
post_id = created["id"] post_id = created["id"]
if xgp_items and post_id: if xgp_items and post_id: