Commit cd215c69 authored by litaolemo's avatar litaolemo

update

parent 71ef6cfc
......@@ -223,11 +223,11 @@ WHERE spam_pv.device_id IS NULL
for protratit_type in portrait_dict["second_demands"]:
partition_date = today_str
pid = hashlib.md5((partition_date + protratit_type).encode("utf8")).hexdigest()
action_count = res_dict[protratit_type]
action_count = res_dict["second_demands"][protratit_type]
instert_sql = """replace into new_user_protratit_count(
partition_day,pid,protratit_count,protratit_type) VALUES('{partition_day}','{pid}',{protratit_count},'{protratit_type}');""".format(
partition_day=today_str, pid=pid, protratit_count=portrait_dict["second_demands"][protratit_type]
partition_day=today_str, pid=pid, protratit_count=action_count
, protratit_type=protratit_type
)
print(instert_sql)
......
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