From 48ffebb221972ec1381562713e117ba2d370a001 Mon Sep 17 00:00:00 2001 From: NitinVangipuram Date: Thu, 5 Sep 2024 15:21:05 +0530 Subject: [PATCH] changes to downloadresume --- CDC_Backend/APIs/adminViews.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CDC_Backend/APIs/adminViews.py b/CDC_Backend/APIs/adminViews.py index d5dab37..0107b1a 100644 --- a/CDC_Backend/APIs/adminViews.py +++ b/CDC_Backend/APIs/adminViews.py @@ -479,9 +479,9 @@ def downloadResume(request, id, email, user_type): if not os.path.isdir(STORAGE_DESTINATION_RESUME_ZIP): os.makedirs(STORAGE_DESTINATION_RESUME_ZIP, exist_ok=True) resumes = {} - for apl in applications: - if apl.selected: - resumes[apl.student.roll_no] = STORAGE_DESTINATION_RESUMES + apl.student.id + '/' + apl.resume # Check if the folder name is student id or user id + for apl in applications: + + resumes[apl.student.roll_no] = STORAGE_DESTINATION_RESUMES + apl.student.id + '/' + apl.resume # Check if the folder name is student id or user id with zipfile.ZipFile(STORAGE_DESTINATION_RESUME_ZIP + zip_filename, 'w', zipfile.ZIP_DEFLATED) as zip_file: for student_roll_no, resume_path in resumes.items():