Skip to content

Commit fe48656

Browse files
authored
fix endpoint for sorting
1 parent 5e66aeb commit fe48656

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/scripts/publish_to_zenodo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def authors_to_creators(authors):
251251
sort_order = sorted(files, key=lambda f: f["filename"] != pdf_name)
252252

253253
r = requests.put(
254-
f"{BASE_URL}/deposit/depositions/{deposition_id}/files/sort",
254+
f"{BASE_URL}/deposit/depositions/{deposition_id}/files",
255255
data=json.dumps([{"id": f["id"]} for f in sort_order]),
256256
headers=json_headers,
257257
)

0 commit comments

Comments
 (0)