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):
from . import views
date = datetime.strptime(date, '%Y-%m-%d')
year, month, day = date.split('-')
monday = views.get_monday(date)
body = views.week(year, month, day)
name = 'weekly-digest-%s' % monday