Compare commits
No commits in common. "30222d06c2ae7762e13596159e040841d5b47259" and "073f8add07fb8eeff4d93bea8e46bd7d30611292" have entirely different histories.
30222d06c2
...
073f8add07
2 changed files with 4 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ def add_email(email):
|
||||||
if r.get("data", {}).get("id"):
|
if r.get("data", {}).get("id"):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
logger.error("failed to add email to list %s => %s", email, r)
|
logger.errror("failed to add email to list %s => %s", email, r)
|
||||||
return False
|
return False
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,5 +27,8 @@ def week(year, month, day):
|
||||||
monday = context['this_week'] = date.strftime('%Y-%m-%d')
|
monday = context['this_week'] = date.strftime('%Y-%m-%d')
|
||||||
context['this_year'] = date.strftime('%Y')
|
context['this_year'] = date.strftime('%Y')
|
||||||
context['week_title'] = 'Phantas.ma weekly update %s' % format_week(monday)
|
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
|
context['items'] = archive_week
|
||||||
return render_to_string("weekly_email.html", context)
|
return render_to_string("weekly_email.html", context)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue