Commit f3ed34df authored by 郭羽's avatar 郭羽

搜索指标统计

parent caf3fa26
......@@ -193,7 +193,7 @@ for t in range(0, task_days):
active_type = res.active_type
partition_date = yesterday_str
pid = hashlib.md5((partition_date + device_os_type + active_type).encode("utf8")).hexdigest()
click_num = res.neirong_click_pv if not res.neirong_click_pv else 0
click_num = res.neirong_click_pv if res.neirong_click_pv else 0
exposure = res.neirong_exp_pv
try:
search_ctr = round(click_num / exposure, 5)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment