Commit bfc6196c authored by litaolemo's avatar litaolemo

update

parent bd383673
...@@ -107,7 +107,7 @@ one_week_age_str = (now + datetime.timedelta(days=-7)).strftime("%Y%m%d") ...@@ -107,7 +107,7 @@ one_week_age_str = (now + datetime.timedelta(days=-7)).strftime("%Y%m%d")
device_id_dict = {} device_id_dict = {}
huidu_device_id_sql = r""" huidu_device_id_sql = r"""
select t1.device_id from select t2.device_id from
(select distinct(first_device) as device_id from online.ml_user_history_detail where partition_date = {today_str} and substr(md5(first_device),-1) in ('8', '9', 'a', 'b') and last_active_date >= {last_30_day_str}) t2 (select distinct(first_device) as device_id from online.ml_user_history_detail where partition_date = {today_str} and substr(md5(first_device),-1) in ('8', '9', 'a', 'b') and last_active_date >= {last_30_day_str}) t2
LEFT JOIN LEFT JOIN
( (
......
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