Merge pull request #203 from CDC-IITDH/nitin

fixed download resume error
This commit is contained in:
Jaya Surya P 2024-09-06 22:45:43 +05:30 committed by GitHub
commit a6ec89f1c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -467,8 +467,7 @@ def downloadResume(request, id, email, user_type):
data = request.data
if OPENING_TYPE in data:
opening_type= data[OPENING_TYPE]
else:
opening_type= "Placement"
if opening_type == "Internship":
opening = get_object_or_404(Internship, id=data[OPENING_ID])
applications = InternshipApplication.objects.filter(internship=opening)