Skip to content

Commit

Permalink
Exclude schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jmelot committed Apr 25, 2024
1 parent ea3cc70 commit f226164
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ror_scripts/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def fetch(output_bucket: str, output_loc: str) -> None:
f.write(zip_resp.content)
ZipFile(zip_f).extractall(td)
print(f"Downloaded content: {os.listdir(td)}")
json_files = [js for js in os.listdir(td) if js.endswith(".json")]
json_files = [
js for js in os.listdir(td) if js.endswith(".json") and ("schema" not in js)
]
assert len(json_files) == 1
output_file = os.path.join(td, output_loc.split("/")[-1])
with open(os.path.join(td, json_files[0])) as f:
Expand Down

0 comments on commit f226164

Please sign in to comment.