From 454914bc155ce6a19e731d87714a85b968025411 Mon Sep 17 00:00:00 2001 From: vshand11 <105606628+vshand11@users.noreply.github.com> Date: Thu, 16 Jan 2025 10:37:20 -0500 Subject: [PATCH] Fixed duplicated id format issue --- src/file_validator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/file_validator.py b/src/file_validator.py index d229291..99899ab 100644 --- a/src/file_validator.py +++ b/src/file_validator.py @@ -210,7 +210,7 @@ def validate_file_id(self, id, line_num): if self.configs[OMIT_DCF_PREFIX] == False: msg = f'Line {line_num}: "{id_field_name}": "{id}" is not in correct format. A correct "{id_field_name}" should look like "dg.4DFC/e041576e-3595-5c8b-b0b3-272bc7cb6aa8". You can provide correct "{id_field_name}" or remove the column and let the system generate it for you.' if not id.startswith("dg.4DFC/"): - self.log.error(msg) + # self.log.error(msg) return False, msg else: uuid = id.split('/')[1] @@ -220,12 +220,12 @@ def validate_file_id(self, id, line_num): else: if(not is_valid_uuid(id)): msg = f'Line {line_num}: "{id_field_name}": "{id}" is not in correct format. A correct "{id_field_name}" should look like "e041576e-3595-5c8b-b0b3-272bc7cb6aa8". You can provide correct "{id_field_name}" or remove the column and let the system generate it for you.' - self.log.error(msg) + # self.log.error(msg) return False, msg else: if self.has_file_id: msg = f'Line {line_num}: "{id_field_name}" is required but not provided. You can provide correct "{id_field_name}" or remove the column and let the system generate it for you.' - self.log.error(msg) + # self.log.error(msg) return False, msg return True, None \ No newline at end of file