Pārlūkot izejas kodu

[querystore] Light code re-styling of download API

Note: id is still a built-in
Romain 5 gadi atpakaļ
vecāks
revīzija
5ce10a315d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      apps/jobbrowser/src/jobbrowser/api2.py

+ 1 - 1
apps/jobbrowser/src/jobbrowser/api2.py

@@ -204,6 +204,6 @@ def query_store_download_bundle(request, id=None):
   app = resource.get('api/data-bundle/' + id)
 
   response = FileResponse((app, 'rb'), content_type='application/octet-stream')
-  response['Content-Disposition'] = 'attachment; filename='+id+'.zip'
+  response['Content-Disposition'] = 'attachment; filename=' + id + '.zip'
 
   return response