Compare commits

...

2 commits

Author SHA1 Message Date
j
30222d06c2 fix error 2023-09-28 11:49:37 +02:00
j
6549d0350d fix week title 2023-09-28 11:49:33 +02:00
2 changed files with 1 additions and 4 deletions

View file

@ -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

View file

@ -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)