Skip to content

Commit 602c68b

Browse files
committed
small bugfix in upload
1 parent 6555a9f commit 602c68b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/push_to_figshare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def write_figshare_details_to_yaml(article_id, project_id, title, version):
199199
data = yaml.safe_load(f)
200200
data["figshare"] = f"https://api.figshare.com/v2/articles/{article_id}"
201201
data["version"] = version
202-
with open("tmp/dataset.yml", "w") as f:
202+
with open("/tmp/dataset.yml", "w") as f:
203203
yaml.safe_dump(data, f, sort_keys=False)
204204

205205

@@ -256,7 +256,7 @@ def write_figshare_details_to_yaml(article_id, project_id, title, version):
256256
print("Files uploaded successfully but not published.")
257257

258258
if all_files_uploaded:
259-
write_figshare_details_to_yaml(article_id, project_id,title, version)
259+
write_figshare_details_to_yaml(article_id, project_id, title, version)
260260

261261
def main():
262262
parser = argparse.ArgumentParser(description='Upload files to Figshare.')

0 commit comments

Comments
 (0)