week number
This commit is contained in:
parent
e2549452ff
commit
21311303e1
3 changed files with 5 additions and 7 deletions
|
|
@ -21,11 +21,10 @@ def get_auth(headers):
|
|||
return auth
|
||||
|
||||
|
||||
def send_week(date):
|
||||
def send_week(monday):
|
||||
from . import views
|
||||
year, month, day = date.split('-')
|
||||
date = datetime.strptime(date, '%Y-%m-%d')
|
||||
monday = views.get_monday(date)
|
||||
monday = views.get_monday(monday)
|
||||
year, month, day = monday.split('-')
|
||||
body = views.week(year, month, day)
|
||||
name = 'weekly-digest-%s' % monday
|
||||
subject = 'Phantas.ma weekly update %s' % views.format_week(monday)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue