From 6cf9cb6861c9191bebb737c7da2fbf181c748bdc Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Tue, 4 Jun 2024 02:24:18 +0530 Subject: [PATCH] removing logs --- src/py/bbctrl/Web.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/py/bbctrl/Web.py b/src/py/bbctrl/Web.py index 18c33d6..f40c369 100644 --- a/src/py/bbctrl/Web.py +++ b/src/py/bbctrl/Web.py @@ -617,20 +617,17 @@ class MacrosDownloadHandler(bbctrl.APIHandler): raise HTTPError(400, 'Missing filename') filename = filename[1:] files = filename.split(',') - self.get_log('Macros Download').info('files ' + ",".join(files)) buffer = io.BytesIO() zip_file = zipfile.ZipFile(buffer, mode="w") - + for filename in files: filename = os.path.basename(url_unescape(filename)) - self.get_log('Macros Download').info('filename ' + filename) filepath = self.get_upload(filename) - self.get_log('Macros Download').info('filepath: ' + filepath) zip_file.write(filepath, filename) zip_file.close() buffer.seek(0) - # Send the zip file for download + self.set_header('Content-Type', 'application/octet-stream') self.set_header('Content-Disposition', 'attachment; filename="macros.zip"') self.write(buffer.getvalue())