Skip to content

Commit

Permalink
Add matrix_id to export
Browse files Browse the repository at this point in the history
untested, don't have a working test env currently
  • Loading branch information
johanvdw committed Jan 30, 2025
1 parent 7509ee1 commit 92c9528
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion volunteers/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def task_schedule_csv(request, template_id):
response['Content-Disposition'] = 'attachment; filename=%s' % filename

writer = csv.writer(response)
writer.writerow(['Task', 'Volunteers', 'Day', 'Start', 'End', 'Volunteer', 'Nick', 'Email', 'Mobile'])
writer.writerow(['Task', 'Volunteers', 'Day', 'Start', 'End', 'Volunteer', 'Nick', 'Email', 'Mobile', 'Matrix_id'])
for task in tasks:
row = [
task.name,
Expand All @@ -157,6 +157,7 @@ def task_schedule_csv(request, template_id):
volunteer.user.username,
volunteer.user.email,
volunteer.mobile_nbr,
volunteer.matrix_id
]
writer.writerow([str(s).encode("utf-8") for s in row])
row = [''] * 9
Expand Down

0 comments on commit 92c9528

Please sign in to comment.