Commit caf3fa26 authored by 郭羽's avatar 郭羽

搜索指标统计

parent 12436ffa
...@@ -193,7 +193,7 @@ for t in range(0, task_days): ...@@ -193,7 +193,7 @@ for t in range(0, task_days):
active_type = res.active_type active_type = res.active_type
partition_date = yesterday_str partition_date = yesterday_str
pid = hashlib.md5((partition_date + device_os_type + active_type).encode("utf8")).hexdigest() pid = hashlib.md5((partition_date + device_os_type + active_type).encode("utf8")).hexdigest()
click_num = res.neirong_click_pv click_num = res.neirong_click_pv if not res.neirong_click_pv else 0
exposure = res.neirong_exp_pv exposure = res.neirong_exp_pv
try: try:
search_ctr = round(click_num / exposure, 5) 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