From 674a3151048ad1aa4ede8a51a344fcb95a388a4d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 21 Nov 2016 14:39:04 -0600 Subject: [PATCH] Fix bug when downloading batch file --- tailbone/views/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/batch.py b/tailbone/views/batch.py index 01f113ac..9fbc73a6 100644 --- a/tailbone/views/batch.py +++ b/tailbone/views/batch.py @@ -946,7 +946,7 @@ class FileBatchMasterView(BatchMasterView): batch = self.get_instance() if not batch: raise httpexceptions.HTTPNotFound() - path = self.handler.data_path(batch) + path = batch.filepath(self.rattail_config) response = FileResponse(path, request=self.request) response.headers[b'Content-Length'] = str(os.path.getsize(path)) filename = os.path.basename(batch.filename).encode('ascii', 'replace')