Permalink
Browse files

Merge pull request #180 from datadavev/master

Add default conversion to dumps
  • Loading branch information...
robintw committed Apr 12, 2017
2 parents c25a236 + e5fabae commit 6d0f15e87fd31edfca6dc8da97bca1d4839ce7b6
Showing with 1 addition and 1 deletion.
  1. +1 −1 recipyGui/views.py
View
@@ -119,7 +119,7 @@ def runs2json():
runs = [db.get(eid=run_id) for run_id in run_ids]
db.close()
response = make_response(dumps(runs, indent=2, sort_keys=True))
response = make_response(dumps(runs, indent=2, sort_keys=True, default=unicode))
response.headers['content-type'] = 'application/json'
response.headers['Content-Disposition'] = 'attachment; filename=runs.json'
return response

0 comments on commit 6d0f15e

Please sign in to comment.