mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-13 12:33:23 +02:00
.
This commit is contained in:
parent
abfb467002
commit
7827f130d9
1 changed files with 1 additions and 1 deletions
|
|
@ -17,6 +17,6 @@ def stream_labels_as_jsonl(request, labelbase_id):
|
|||
yield json.dumps(item) + '\n'
|
||||
|
||||
# Return the data as a streaming response
|
||||
response = StreamingHttpResponse(generator(), content_type='application/json')
|
||||
response = StreamingHttpResponse(generator(), content_type='application/jsonl')
|
||||
response['Content-Disposition'] = 'attachment; filename="labelbase-{}.jsonl"'.format(labelbase_id)
|
||||
return response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue