Skip to content

Commit

Permalink
fix: fix a bug in exporting participants info
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Dec 28, 2024
1 parent 5714560 commit ef73f34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/report/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _get_participants_excel_file(form_id):
"Username",
"Phone Number",
"National Code",
"School Name",
"School",
"City",
"Province",
"Receipt Status",
Expand All @@ -47,9 +47,9 @@ def _get_participants_excel_file(form_id):
"Username": user.username,
"Phone Number": user.phone_number,
"National Code": user.national_code,
"School Name": school.name,
"City": school.city,
"Province": school.province,
"School": school.name if school else "-",
"City": user.city,
"Province": user.province,
"Receipt Status": receipt.status,
"Is Participating": "Yes" if receipt.is_participating else "No",
})
Expand Down

0 comments on commit ef73f34

Please sign in to comment.