diff --git a/src/scripts/create_categories.py b/src/scripts/create_categories.py index fc2ccd7..4aa2b48 100644 --- a/src/scripts/create_categories.py +++ b/src/scripts/create_categories.py @@ -17,7 +17,7 @@ def run(): ("Autre", "Autres événements", "A") ] - if len(Category.objects.all()) == 0: + if len(Category.objects.all()) <= 1: print("On créée des catégories") for c in categories: cat = Category(name=c[0], alt_name = c[1] if c[1] is not None else c[0], codename=c[2])