newsletter days corrected
All checks were successful
Build and Deploy Backend / build_and_deploy (push) Successful in 21s
All checks were successful
Build and Deploy Backend / build_and_deploy (push) Successful in 21s
This commit is contained in:
parent
47a71ff40b
commit
f929cb0cd8
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ def check_blog_rss_and_send_admin_mail():
|
|||
date_string = str(article["published"])
|
||||
date_object = datetime.strptime(date_string, '%a, %d %b %Y %H:%M:%S %Z')
|
||||
|
||||
if date_object > (datetime.now() - timedelta(days=16)):
|
||||
if date_object > (datetime.now() - timedelta(days=1)):
|
||||
title = str(article["title"])
|
||||
description = str(article["summary"])
|
||||
subtitle = str(article["subtitle"])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue