Skip to content

Commit

Permalink
OK
Browse files Browse the repository at this point in the history
  • Loading branch information
agahkarakuzu committed Aug 15, 2024
1 parent 845bc09 commit fb3af01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/neurolibre_celery_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def preview_download_data(self, payload):
logging.info(contents.decoded_content)
data_manifest = json.loads(contents.decoded_content)
logging.info(f"Here making dir")
os.mkdir(os.path.join(DATA_ROOT_PATH,"tmp_repo2data",owner,repo))
os.makedirs(os.path.join(DATA_ROOT_PATH,"tmp_repo2data",owner,repo),exist_ok=True)
json_path = os.path.join(DATA_ROOT_PATH,"tmp_repo2data",owner,repo,"data_requirement.json")
with open(json_path,"w") as f:
json.dump(data_manifest,f)
Expand Down

0 comments on commit fb3af01

Please sign in to comment.