cola 2 years ago
parent
commit
ce3fb238f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      handlers/HandlerBase.py

+ 1 - 1
handlers/HandlerBase.py

@@ -49,7 +49,7 @@ class BaseHandler(RequestHandler, DateUtils):
 
 
     def write_download(self, filename, data):
     def write_download(self, filename, data):
         self.set_header('Content-Type', 'application/octet-stream')
         self.set_header('Content-Type', 'application/octet-stream')
-        self.set_header('Content-Disposition', f'attachment; filename={filename}.xlsx')
+        self.set_header('Content-Disposition', f'attachment; filename={filename}.csv')
         self.set_header("Pargam", "no-cache")
         self.set_header("Pargam", "no-cache")
         self.set_header("Cache-Control", "no-cache")
         self.set_header("Cache-Control", "no-cache")
         df = pd.DataFrame(data).to_csv(encoding='utf-8')
         df = pd.DataFrame(data).to_csv(encoding='utf-8')