Commit 90f19e64 authored by litaolemo's avatar litaolemo

update

parent 9b041d8f
......@@ -203,9 +203,12 @@ for t in range(0, task_days):
for count, item in enumerate(tag_names_list_week):
word, nums, uv, date_str = item
partition_date = date_str
try:
pid = hashlib.md5((partition_date + word).encode("utf8")).hexdigest()
insert_sql_tuple = (word, nums, uv, pid, date_str)
insert_list.append(insert_sql_tuple)
except:
continue
print(insert_sql)
if count % 100 == 0:
cursor.execute("set names 'UTF8'")
......
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