Commit 1b229435 authored by litaolemo's avatar litaolemo

update

parent 359a565d
......@@ -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 = 2
task_days = 90
for t in range(1, task_days):
day_num = 0 - t
now = (datetime.datetime.now() + datetime.timedelta(days=day_num))
......@@ -204,7 +204,7 @@ and (dev.device_id is null or dev.device_id='')
for res in sql_res:
print(res)
if res.ACTIVE_TYPE:
if res.ACTIVE_TYPE in (1, 2):
if res.ACTIVE_TYPE in ('1', '2'):
res_dict["新增"][res.DEVICE_OS_TYPE]["click_num"] += res.CLICK_NUM
res_dict["新增"][res.DEVICE_OS_TYPE]["exposure"] += res.EXPOSURE
else:
......
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