From 6549d0350debbe6b7260896687a89a8acaa4af5c Mon Sep 17 00:00:00 2001 From: j Date: Thu, 28 Sep 2023 11:49:33 +0200 Subject: [PATCH 1/2] fix week title --- app/listmonk/views.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/listmonk/views.py b/app/listmonk/views.py index 67717ad..29052b1 100644 --- a/app/listmonk/views.py +++ b/app/listmonk/views.py @@ -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) From 30222d06c2ae7762e13596159e040841d5b47259 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 28 Sep 2023 11:49:37 +0200 Subject: [PATCH 2/2] fix error --- app/listmonk/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/listmonk/utils.py b/app/listmonk/utils.py index 21e9d11..3718ee5 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.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