Skip to content
Snippets Groups Projects
Commit 33e39d10 authored by Enrique Garcia's avatar Enrique Garcia
Browse files

new upload should now does not check redord id

parent aef72c0e
No related branches found
No related tags found
1 merge request!57eossr upload unique function
Pipeline #140906 passed
This commit is part of merge request !57. Comments created here will be created in the context of that merge request.
......@@ -87,7 +87,7 @@ def upload(zenodo_token, sandbox_flag, upload_directory, zip_root_dir=False, rec
# Searches for similar records
similar_records = find_similar_records(zenodo, record)
if similar_records and not force_new_record:
if similar_records and not force_new_record and not record_id:
raise SimilarRecordError(
f"There are similar records in your own records: {similar_records}."
"If you want to update an existing record, provide its record id to make a new version."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment