fixed export csv error

This commit is contained in:
NitinVangipuram 2024-10-25 22:54:22 +05:30
parent 95d7689a4c
commit 3d42366e50
1 changed files with 1 additions and 2 deletions

View File

@ -450,8 +450,7 @@ def generateCSV(request, id, email, user_type):
row_details.append(apl.selected) row_details.append(apl.selected)
for i in opening.additional_info: for i in opening.additional_info:
row_details.append(json.loads(apl.additional_info)[i]) row_details.append(json.loads(apl.additional_info).get(i, ''))
writer.writerow(row_details) writer.writerow(row_details)
f.close() f.close()
file_path = LINK_TO_APPLICATIONS_CSV + urllib.parse.quote_plus(filename + ".csv") file_path = LINK_TO_APPLICATIONS_CSV + urllib.parse.quote_plus(filename + ".csv")