ck 4 anos atrás
pai
commit
312645f2de
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      handlers/PitcherPanelHandler.py

+ 1 - 1
handlers/PitcherPanelHandler.py

@@ -142,7 +142,7 @@ class ChannelSummary(BaseHandler):
         # print(data)
         if arg.get("download"):
             self.set_header('Content-Type', 'application/octet-stream')
-            self.set_header('Content-Disposition', 'attachment; filename=1.csv')
+            self.set_header('Content-Disposition', f'attachment; filename=channel_{int(time.time())}.csv')
             self.set_header("Pargam", "no-cache")
             self.set_header("Cache-Control", "no-cache")
             df = pd.DataFrame(data).to_csv(encoding='utf-8')