Commit 913f82c8 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

References are followed in archive API even without partial archive.

parent 4031b61e
Pipeline #83347 canceled with stages
in 12 minutes and 12 seconds
......@@ -307,7 +307,10 @@ class ArchiveQueryResource(Resource):
upload_files = None
current_upload_id = None
required_with_references = compute_required_with_referenced(required)
archive_is_complete = required_with_references is not None
archive_is_complete = False
if required_with_references is not None:
archive_is_complete = True
required = required_with_references
for entry in calcs:
with_embargo = entry['with_embargo']
......@@ -340,7 +343,7 @@ class ArchiveQueryResource(Resource):
partial_archive = upload_partial_archives[calc_id]
partial_archive = filter_archive(
required_with_references, partial_archive, transform=lambda e: e)
required, partial_archive, transform=lambda e: e)
'calc_id': calc_id,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment