fix send_week
This commit is contained in:
parent
b20760f688
commit
9d7659ef40
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,8 @@ def get_auth(headers):
|
|||
|
||||
def send_week(monday):
|
||||
from . import views
|
||||
monday = views.get_monday(monday)
|
||||
date = datetime.strptime(date, '%Y-%m-%d')
|
||||
monday = views.get_monday(date)
|
||||
year, month, day = monday.split('-')
|
||||
body = views.week(year, month, day)
|
||||
name = 'weekly-digest-%s' % monday
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue