Commit 9d785f3f authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Fixed issue in archive file access.

parent 8a113b45
Pipeline #76813 passed with stages
in 45 minutes and 46 seconds
......@@ -1203,8 +1203,8 @@ def read_archive(upload_id: str, calc_id: str) -> EntryArchive:
For each path, a dictionary containing the path as key and the returned
section as value.
"""
upload_files = files.UploadFiles.get(upload_id)
with upload_files.read_archive(calc_id) as archive:
upload_files = files.PublicUploadFiles(upload_id)
with upload_files.read_archive(calc_id, access="public") as archive:
data = archive[calc_id]
root = EntryArchive.m_from_dict(data.to_dict())
......
Markdown is supported
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