Compare commits
2 commits
073f8add07
...
30222d06c2
Author | SHA1 | Date | |
---|---|---|---|
30222d06c2 | |||
6549d0350d |
2 changed files with 1 additions and 4 deletions
|
@ -73,7 +73,7 @@ def add_email(email):
|
|||
if r.get("data", {}).get("id"):
|
||||
return True
|
||||
else:
|
||||
logger.errror("failed to add email to list %s => %s", email, r)
|
||||
logger.error("failed to add email to list %s => %s", email, r)
|
||||
return False
|
||||
return False
|
||||
|
||||
|
|
|
@ -27,8 +27,5 @@ def week(year, month, day):
|
|||
monday = context['this_week'] = date.strftime('%Y-%m-%d')
|
||||
context['this_year'] = date.strftime('%Y')
|
||||
context['week_title'] = 'Phantas.ma weekly update %s' % format_week(monday)
|
||||
extra = models.Week.objects.filter(monday=context['this_week']).first()
|
||||
if extra:
|
||||
context['week_title'] += ': ' + extra.title
|
||||
context['items'] = archive_week
|
||||
return render_to_string("weekly_email.html", context)
|
||||
|
|
Loading…
Add table
Reference in a new issue