on applique aussi aux événements du passé
This commit is contained in:
parent
0e5a3d4435
commit
a43eb28e75
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user