Skip to content

Commit

Permalink
Use writerows
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Nov 11, 2023
1 parent e619922 commit ed8031a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions competition/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,7 @@ def participants_export(self, request, pk=None):
header = ProfileExportSerializer.Meta.fields
writer = csv.DictWriter(response, fieldnames=header)
writer.writeheader()
for row in serializer.data:
writer.writerow(row)
writer.writerows(serializer.data)
return response

def post(self, request, format_post):
Expand Down

0 comments on commit ed8031a

Please sign in to comment.