From a43eb28e75a43465c5f9619c54579bcf6ba68193 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Mon, 22 Apr 2024 12:20:32 +0200 Subject: [PATCH] =?UTF-8?q?on=20applique=20aussi=20aux=20=C3=A9v=C3=A9neme?= =?UTF-8?q?nts=20du=20pass=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agenda_culturel/views.py b/src/agenda_culturel/views.py index e2f01ee..d416018 100644 --- a/src/agenda_culturel/views.py +++ b/src/agenda_culturel/views.py @@ -928,7 +928,7 @@ def apply_categorisation_rules(request): else: # first we check if events are not correctly categorised to_categorise = [] - for e in Event.objects.exclude(category=Category.get_default_category_id()).filter(start_day__gt=timezone.now().date()): + for e in Event.objects.exclude(category=Category.get_default_category_id()): c = CategorisationRule.match_rules(e) if c and c != e.category: to_categorise.append((e, c))