fix send_week
This commit is contained in:
parent
14a70dfd86
commit
559eaeaa66
1 changed files with 1 additions and 1 deletions
|
@ -15,8 +15,8 @@ headers = {
|
|||
|
||||
def send_week(date):
|
||||
from . import views
|
||||
date = datetime.strptime(date, '%Y-%m-%d')
|
||||
year, month, day = date.split('-')
|
||||
date = datetime.strptime(date, '%Y-%m-%d')
|
||||
monday = views.get_monday(date)
|
||||
body = views.week(year, month, day)
|
||||
name = 'weekly-digest-%s' % monday
|
||||
|
|
Loading…
Reference in a new issue