From b78f86abf3d9328b0338b706caab77d8fc2997f7 Mon Sep 17 00:00:00 2001 From: Mobmaker <45888585+Mobmaker55@users.noreply.github.com> Date: Fri, 6 Sep 2024 11:46:11 -0400 Subject: [PATCH] 99% sure it will upload to the bucket now --- conditional/blueprints/major_project_submission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conditional/blueprints/major_project_submission.py b/conditional/blueprints/major_project_submission.py index 1a4cd0e..e142e4e 100644 --- a/conditional/blueprints/major_project_submission.py +++ b/conditional/blueprints/major_project_submission.py @@ -103,7 +103,7 @@ def submit_major_project(user_dict=None): # Collect all the locally cached files and put them in the bucket for file in os.listdir(f"/tmp/{user_dict['username']}"): print(file) - bucket.upload_file(file, file.split("/")[-1]) + bucket.upload_file(f"/tmp/{user_dict['username']}/{file}", file) os.remove(file) os.rmdir(f"/tmp/{user_dict['username']}")