forgot!
This commit is contained in:
parent
f59b78bdea
commit
1381f3fdbd
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ def check_blog_rss_and_send_admin_mail():
|
||||||
for article in feed.entries:
|
for article in feed.entries:
|
||||||
date_string = str(article["published"])
|
date_string = str(article["published"])
|
||||||
date_object = datetime.strptime(date_string, '%a, %d %b %Y %H:%M:%S %Z')
|
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"])
|
title = str(article["title"])
|
||||||
description = str(article["summary"])
|
description = str(article["summary"])
|
||||||
subtitle = str(article["subtitle"])
|
subtitle = str(article["subtitle"])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue