From 0503625d9225ea1744b851873dbda047a351f26b Mon Sep 17 00:00:00 2001 From: Stefan Date: Tue, 22 Oct 2024 09:28:46 +0200 Subject: [PATCH] :green_heart: FIX CI build --- src/sdg/utils/context_processors.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/sdg/utils/context_processors.py b/src/sdg/utils/context_processors.py index 3f59bdf74..af780f3bd 100644 --- a/src/sdg/utils/context_processors.py +++ b/src/sdg/utils/context_processors.py @@ -1,9 +1,10 @@ from django.conf import settings as django_settings +from django.utils.timezone import now + +from dateutil.relativedelta import relativedelta from sdg.conf.utils import org_type_cfg from sdg.producten.models import NotificationViewed, ProductVersie -from django.utils.timezone import now -from dateutil.relativedelta import relativedelta def settings(request): @@ -38,7 +39,6 @@ def has_new_notifications(request): except NotificationViewed.DoesNotExist: notification_viewed = None - # Get the last_viewed_date from data try: last_viewed_date = notification_viewed.last_viewed_date @@ -46,7 +46,6 @@ def has_new_notifications(request): # default last_viewed_date is 12 months ago last_viewed_date = now() - relativedelta(months=12) - # Get the latest product version after the last_viewed_date else None. latest_notification = ( ProductVersie.objects.filter(