Skip to content

Commit

Permalink
fix: pycodestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram committed Feb 20, 2024
1 parent 9ba9110 commit 0a69d4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bulk_grades/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def get(self, request, course_id, *args, **kwargs):
filename = self.get_export_filename(course_id)

response = StreamingHttpResponse(iterator, content_type='text/csv')
response['Content-Disposition'] = f'attachment; filename="{filename}"' # noqa
response_content = 'attachment;'
response['Content-Disposition'] = f'{response_content} filename="{filename}"'

log.info('Exporting %s CSV for %s', course_id, self.__class__)
return response
Expand Down

0 comments on commit 0a69d4c

Please sign in to comment.