ck преди 4 години
родител
ревизия
abdc8058ec
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  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)