Skip to content

Commit 3e78ec7

Browse files
committed
fixed typo
1 parent acda0f0 commit 3e78ec7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dashboard/views.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def get_ca_export(filename):
5757
worksheet.write(1, 3, "Contact", header_format)
5858
worksheet.write(1, 4, "College", header_format)
5959
for ca in ca_list:
60-
if 'iitj' not in ca.college.lower() and 'iit jodhpur' not in ca.college.lower() and 'Indian Institute of Technology Jodhpur' not in ca.college.lower() and 'Indian Institute of Technology, Jodhpur' not in ca.college.lower():
60+
if 'iitj' not in ca.college.lower() and 'iit jodhpur' not in ca.college.lower() and 'indian institute of technology jodhpur' not in ca.college.lower() and 'indian institute of technology, jodhpur' not in ca.college.lower():
6161
worksheet.write(row, 0, ca.user.email)
6262
worksheet.write(row, 1, ca.first_name + ' ' + ca.last_name)
6363
worksheet.write(row, 2, ca.invite_referral)
@@ -133,13 +133,11 @@ def downloadfile(request, filename):
133133
get_all_user_export(filename + '.xlsx')
134134
elif filename == "Campus_Ambassador_List":
135135
get_ca_export(filename + '.xlsx')
136-
print(file_path)
137136
file_path += '.xlsx'
138137
if os.path.exists(file_path):
139138
with open(file_path, 'rb') as fh:
140139
response = HttpResponse(fh.read(), content_type="application/vnd.ms-excel")
141140
response['Content-Disposition'] = 'inline; filename=' + os.path.basename(file_path)
142-
print(response)
143141
return response
144142
raise Http404
145143

0 commit comments

Comments
 (0)