Commit cb420e54 authored by litaolemo's avatar litaolemo

update

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