more dumbness
All checks were successful
Build and Deploy Backend / build_and_deploy (push) Successful in 20s
All checks were successful
Build and Deploy Backend / build_and_deploy (push) Successful in 20s
This commit is contained in:
parent
f3da08619e
commit
47a71ff40b
1 changed files with 4 additions and 4 deletions
|
|
@ -30,10 +30,10 @@ def approve_newsletter(secret: str = Form(), session: Session = Depends(get_sess
|
||||||
article = find_article_by_title(title)
|
article = find_article_by_title(title)
|
||||||
if article is not None:
|
if article is not None:
|
||||||
article_data = {
|
article_data = {
|
||||||
title: article["title"],
|
"title": article["title"],
|
||||||
title: article["subtitle"],
|
"subtitle": article["subtitle"],
|
||||||
title: article["summary"],
|
"description": article["summary"],
|
||||||
title: article["link"],
|
"link": article["link"],
|
||||||
}
|
}
|
||||||
subscribed_users = session.exec(select(User).where(User.subscription == True))
|
subscribed_users = session.exec(select(User).where(User.subscription == True))
|
||||||
mails: list[BatchEmailRequest] = []
|
mails: list[BatchEmailRequest] = []
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue