Compare commits

..

2 Commits

Author SHA1 Message Date
NitinVangipuram 48ffebb221 changes to downloadresume 2024-09-05 15:21:05 +05:30
Jaya Surya P c89cae549f
Merge pull request #201 from CDC-IITDH/nitin
changes to student model
2024-08-16 21:43:22 +05:30
1 changed files with 3 additions and 3 deletions

View File

@ -480,7 +480,7 @@ def downloadResume(request, id, email, user_type):
os.makedirs(STORAGE_DESTINATION_RESUME_ZIP, exist_ok=True) os.makedirs(STORAGE_DESTINATION_RESUME_ZIP, exist_ok=True)
resumes = {} resumes = {}
for apl in applications: 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 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: with zipfile.ZipFile(STORAGE_DESTINATION_RESUME_ZIP + zip_filename, 'w', zipfile.ZIP_DEFLATED) as zip_file: