Skip to content
Snippets Groups Projects
Verified Commit aaf3a264 authored by Peter Stanko's avatar Peter Stanko
Browse files

Result upload fixes

parent 2f5272ea
No related branches found
No related tags found
1 merge request!13Cascade everywhere
......@@ -24,12 +24,11 @@ def upload_submission_to_storage(new_submission_id: str, file_params: dict):
def upload_results_to_storage(new_submission_id: str, path: str):
path = str(path)
new_submission = find_submission(new_submission_id)
file_params = dict(type='zip', source=dict(path=path))
file_params = dict(source=dict(url=path, type='zip'))
log.info(
f"[ASYNC] Uploading result for the submission {new_submission.id} with {file_params}")
entity = storage.results.create(entity_id=new_submission.id, **file_params)
Path(path).unlink()
return entity
@celery_app.task(name='clone-submission-files')
......
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