ck hace 4 años
padre
commit
abdc8058ec
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      app/etl/data_stat_task.py

+ 3 - 1
app/etl/data_stat_task.py

@@ -167,7 +167,7 @@ from
              sum(amount) as order_amount
        from order  group by date,channel) d
         on dt=dt4 and channel=channel4;"""
-    ck.execute("truncate table dw_daily_channel_plus")
+    ck.execute("truncate table dw_daily_channel")
     ck.execute(sql)
     print("ok")
 
@@ -180,6 +180,8 @@ if __name__ == '__main__':
     # ods_order('2020-12-20')
     # dw_daily_channel_plus()
     # exit()
+    dw_daily_channel()
+    exit(0)
 
     for i in dt.getDateLists('2019-03-18','2020-12-20'):
         print(i)