diff --git a/tools/key_file.py b/tools/key_file.py index 7cdb9307dd7529f172b512e01869ebced5f55ab6..1935b230e0677f7de6c17a9fc6fed46a88aa151e 100644 --- a/tools/key_file.py +++ b/tools/key_file.py @@ -111,6 +111,12 @@ class RepartitionKeyEntryFile: if self.data: counter_list_from_file = self.data[0].split(";")[1:] + if len(counter_list_from_file) != len(set(counter_list_from_file)): + return { + "check": False, + f"message": "Des numéros de PRM apparaissent plusieurs fois" + } + if sorted(self.operation_counter_list) == sorted(counter_list_from_file): return {"check": True, "message": ""} else: