renyupeng 3 år sedan
förälder
incheckning
294f29e656
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Apietl/kwai_etl/report/MateirialVideoDailyReport.py

+ 1 - 1
Apietl/kwai_etl/report/MateirialVideoDailyReport.py

@@ -289,7 +289,7 @@ from media_api.kuaishou_material_video_report_daily report
          left join `jeecg-boot`.ctop_product product on product.id = cp.product_id
  where report.stat_date between {start_time} and {end_time} and  report.photo_id!=0
    and report.advertiser_id={account_id}""".format(
-                    start_time=self.start_time, end_time=self.end_time, account_id=account_id)
+                    start_time=self.start_time, end_time=self.end_time, account_id=account_id[0])
                 print(sql)
                 TidbConn.upsert(conn=self.conn, sql_buff=sql)
                 self.conn.commit()