Skip to content

Commit

Permalink
Stabilize tests (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarPersson committed Feb 7, 2020
1 parent 35e2302 commit 030654e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ESSArch_Core/stats/views.py
@@ -1,4 +1,4 @@
import tempfile
import io

from celery import states as celery_states
from django.contrib.auth import get_user_model
Expand Down Expand Up @@ -61,7 +61,7 @@ def export(request):
raise exceptions.ParseError('Unknown field: {}'.format(e))

template = 'stats/export.html'.format()
f = tempfile.TemporaryFile()
f = io.BytesIO()

ctype = 'application/pdf'
render = render_to_string(template, {'data': data})
Expand Down

0 comments on commit 030654e

Please sign in to comment.