fix send_week
This commit is contained in:
parent
fce2cf64c0
commit
14a70dfd86
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue