Skip to content

Commit

Permalink
#2300: Check only for files that end with .json or .json.br
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Jul 25, 2024
1 parent d8aad63 commit ac3d321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/JSON_data_files_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ac3d321

Please sign in to comment.