From ede97063c3bb927fca084815dad8fa6c3db48b04 Mon Sep 17 00:00:00 2001 From: Jacob Domagala Date: Thu, 25 Jul 2024 11:32:42 +0200 Subject: [PATCH] #2300: Check only for files that end with .json or .json.br --- scripts/JSON_data_files_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/JSON_data_files_validator.py b/scripts/JSON_data_files_validator.py index 5af5f6f154..fd96966464 100644 --- a/scripts/JSON_data_files_validator.py +++ b/scripts/JSON_data_files_validator.py @@ -398,7 +398,7 @@ def __validate_file(self, file_path): base = basename[0:index] #FIXME: files = get_complete_dataset... files = [os.path.join(dirname, f) for f in os.listdir(dirname) - if f.startswith(base)] + if f.startswith(base) and (f.endswith(".json") or f.endswith(".json.br"))] print(files) #REMOVE_ME / logging all_jsons = [get_json(file) for file in files] else: