quick fix
All checks were successful
Build and Deploy Backend / build_and_deploy (push) Successful in 19s
All checks were successful
Build and Deploy Backend / build_and_deploy (push) Successful in 19s
This commit is contained in:
parent
8c5962cf73
commit
2956093239
1 changed files with 1 additions and 1 deletions
|
|
@ -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"],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue