Compare commits
No commits in common. "48ffebb221972ec1381562713e117ba2d370a001" and "020a10f71a411a63aa6cf3b3498781ab3c2ab27c" have entirely different histories.
48ffebb221
...
020a10f71a
|
@ -480,8 +480,8 @@ 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:
|
||||||
for student_roll_no, resume_path in resumes.items():
|
for student_roll_no, resume_path in resumes.items():
|
||||||
|
|
Loading…
Reference in New Issue