fix week title

This commit is contained in:
j 2023-09-28 11:49:33 +02:00
parent 073f8add07
commit 6549d0350d

View file

@ -27,8 +27,5 @@ 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)