quick fix
All checks were successful
Build and Deploy Backend / build_and_deploy (push) Successful in 19s

This commit is contained in:
ebby 2026-10-09 15:13:39 +02:00
parent 8c5962cf73
commit 2956093239

View file

@ -30,7 +30,7 @@ def approve_newsletter(secret: str = Form(), session: Session = Depends(get_sess
if title is not None: if title is not None:
article = find_article_by_title(title) article = find_article_by_title(title)
if article is not None: if article is not None:
date_object = datetime.strptime(str(article["pubDate"]), '%a, %d %b %Y %H:%M:%S %Z') date_object = datetime.strptime(str(article["published"]), '%a, %d %b %Y %H:%M:%S %Z')
article_data = { article_data = {
"title": article["title"], "title": article["title"],
"subtitle": article["subtitle"], "subtitle": article["subtitle"],