zhl 3 years ago
parent
commit
54452a6362
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Apietl/task/send_material_report_weekly.py

+ 3 - 3
Apietl/task/send_material_report_weekly.py

@@ -49,12 +49,12 @@ where t1.stat_date between date_sub('{stat_date}', INTERVAL 6 DAY)  and '{stat_d
 GROUP BY
 t1.signature""".format(stat_date=self.stat_date)
         print(sql)
-        path = """/data/excel/material_report_weekly_{stat_date}.xls""".format(stat_date=self.stat_date)
+        path = """/data/excel/material_week_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
         my_sender = 'notice@c-top.com.cn'  # 发件人邮箱账号
         my_pass = 'Hcst@2021'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
-        recipients = ['zhaohailiang@c-top.com.cn']  # 收件人邮箱账号
+        recipients = ['wanglei@c-top.com.cn','niuxiaoyu@c-top.com.cn','dukexuan@c-top.com.cn','zhaohailiang@c-top.com.cn']  # 收件人邮箱账号
         # content = "Please check the attachment. "
         msg = MIMEMultipart()
         # [发件人的邮箱昵称、发件人邮箱账号], 昵称随便
@@ -62,7 +62,7 @@ t1.signature""".format(stat_date=self.stat_date)
         # [收件人邮箱昵称、收件人邮箱账号], 昵称随便
         msg['To'] = ",".join(recipients)
         # 邮件的主题,也就是邮件的标题
-        msg['Subject'] = "素材周报"
+        msg['Subject'] = "快手-全量素材周报"
 
         att1 = MIMEText(
             open(path, 'rb').read(), 'base64', 'utf-8')