on applique aussi aux événements du passé

This commit is contained in:
Jean-Marie Favreau 2024-04-22 12:20:32 +02:00
parent 0e5a3d4435
commit a43eb28e75
1 changed files with 1 additions and 1 deletions

View File

@ -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))