email list fixes
This commit is contained in:
parent
e82d5d5f15
commit
113dd622b2
4 changed files with 20 additions and 6 deletions
|
|
@ -10,10 +10,12 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
def send_week(year, month, day):
|
||||
from . import views
|
||||
date = '%s-%02d-%02d' % (year, month, day)
|
||||
date = datetime.strptime(date, '%Y-%m-%d')
|
||||
monday = views.get_monday(date)
|
||||
body = views.week(year, month, day)
|
||||
week = '%s-%02d-%02d' % (year, month, day)
|
||||
name = 'weekly-digest-%s' % week
|
||||
subject = 'Phantas.ma weekly update %s' % views.format_week(week)
|
||||
name = 'weekly-digest-%s' % monday
|
||||
subject = 'Phantas.ma weekly update %s' % views.format_week(monday)
|
||||
return send_email(name, subject, body)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue