From c4ace8b2078be9ef7b92ff5378a227ffb16f89e8 Mon Sep 17 00:00:00 2001 From: litaolemo <593516104@qq.com> Date: Mon, 7 Dec 2020 17:46:16 +0800 Subject: [PATCH] update --- task/search_diary_ctr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/task/search_diary_ctr.py b/task/search_diary_ctr.py index c268719..bd899cc 100644 --- a/task/search_diary_ctr.py +++ b/task/search_diary_ctr.py @@ -73,7 +73,7 @@ spark.sql("CREATE TEMPORARY FUNCTION is_json AS 'com.gmei.hive.common.udf.UDFJso spark.sql("CREATE TEMPORARY FUNCTION arrayMerge AS 'com.gmei.hive.common.udf.UDFArryMerge'") task_list = [] -task_days = 3 +task_days = 90 for t in range(0, task_days): day_num = 0 - t now = (datetime.datetime.now() + datetime.timedelta(days=day_num)) @@ -166,7 +166,7 @@ group by t1.partition_date,device_os_type,active_type,channel print(res) device_os_type = res.device_os_type active_type = res.active_type - partition_date = yesterday_str + partition_date = today_str channel = res.channel pid = hashlib.md5((partition_date + device_os_type + active_type + channel).encode("utf8")).hexdigest() diary_click_num = res.diary_click_pv -- 2.18.0