diff --git a/app/listmonk/utils.py b/app/listmonk/utils.py index 3718ee5..21e9d11 100644 --- a/app/listmonk/utils.py +++ b/app/listmonk/utils.py @@ -73,7 +73,7 @@ def add_email(email): if r.get("data", {}).get("id"): return True 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 diff --git a/app/listmonk/views.py b/app/listmonk/views.py index 29052b1..67717ad 100644 --- a/app/listmonk/views.py +++ b/app/listmonk/views.py @@ -27,5 +27,8 @@ 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)