From 655840a65b02ab85729e311a97f53593b010d2f9 Mon Sep 17 00:00:00 2001 From: Sylvain Delabye Date: Thu, 31 Oct 2024 09:05:42 +0100 Subject: [PATCH] Fix condition in denonciation_batch (#1633) --- conventions/management/commands/denonciation_batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conventions/management/commands/denonciation_batch.py b/conventions/management/commands/denonciation_batch.py index f2abbc76b..36fe6d49d 100644 --- a/conventions/management/commands/denonciation_batch.py +++ b/conventions/management/commands/denonciation_batch.py @@ -100,7 +100,7 @@ def handle(self, *args, **options): numeros = options["numeros"] dates = options["dates"] - if len(numeros) == len(dates): + if len(numeros) != len(dates): self.stdout.write( self.style.ERROR( f"There must be the same number of numeros ({len(numeros)}) and dates ({len(dates)})"