Commit 7c242c57 authored by litaolemo's avatar litaolemo

update

parent da2aaac4
...@@ -80,7 +80,7 @@ spark.sql("CREATE TEMPORARY FUNCTION arrayMerge AS 'com.gmei.hive.common.udf.UDF ...@@ -80,7 +80,7 @@ spark.sql("CREATE TEMPORARY FUNCTION arrayMerge AS 'com.gmei.hive.common.udf.UDF
task_days = 2 task_days = 2
for t in range(1, 2): for t in range(0, 60):
day_num = 0 - t day_num = 0 - t
now = (datetime.datetime.now() + datetime.timedelta(days=day_num)) now = (datetime.datetime.now() + datetime.timedelta(days=day_num))
last_30_day_str = (now + datetime.timedelta(days=-30)).strftime("%Y%m%d") last_30_day_str = (now + datetime.timedelta(days=-30)).strftime("%Y%m%d")
...@@ -804,7 +804,6 @@ for t in range(1, 2): ...@@ -804,7 +804,6 @@ for t in range(1, 2):
data_dict[data[0]] = data[1] data_dict[data[0]] = data[1]
if not data_dict: if not data_dict:
continue continue
sql_res = {}
print(data_dict) print(data_dict)
print("-----------------------------------------------------------------------------") print("-----------------------------------------------------------------------------")
for res in sql_res: for res in sql_res:
......
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