fix send_week

This commit is contained in:
j 2023-11-26 14:04:56 +00:00
parent fce2cf64c0
commit 14a70dfd86

View file

@ -16,6 +16,7 @@ headers = {
def send_week(date): def send_week(date):
from . import views from . import views
date = datetime.strptime(date, '%Y-%m-%d') date = datetime.strptime(date, '%Y-%m-%d')
year, month, day = date.split('-')
monday = views.get_monday(date) monday = views.get_monday(date)
body = views.week(year, month, day) body = views.week(year, month, day)
name = 'weekly-digest-%s' % monday name = 'weekly-digest-%s' % monday