From 19b4f8a8a4af5115d3aaa29b52edb060e714618a Mon Sep 17 00:00:00 2001 From: j Date: Sat, 23 Sep 2023 17:30:45 +0200 Subject: [PATCH] fix import --- app/listmonk/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/listmonk/views.py b/app/listmonk/views.py index dd81e09..54e2550 100644 --- a/app/listmonk/views.py +++ b/app/listmonk/views.py @@ -6,7 +6,7 @@ from django.db.models.functions import ExtractWeek, ExtractYear from ..item import models -from ..item.views import get_weeks +from ..item.views import get_weeks, format_week def week(year, month, day): @@ -26,7 +26,7 @@ def week(year, month, day): context['weeks'] = get_weeks(archive) monday = context['this_week'] = date.strftime('%Y-%m-%d') context['this_year'] = date.strftime('%Y') - context['week_title'] = 'Phantas.ma weekly update %s' % views.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