Commit c1a0750f authored by litaolemo's avatar litaolemo

update

parent e0fc155c
......@@ -66,9 +66,11 @@ def scan_es_to_mysql():
for doc_id in doc_id_list:
try:
data = es_framework.get_source(index="crawler-data-raw",id=doc_id)
except:
except Exception as e:
print("can't fine %s from es" % doc_id)
continue
if data:
data["doc_id"] = doc_id
try:
tractate_id = write_data_into_mysql(data, user_id_list)
print("write data %s %s into sql" % (tractate_id, res["_id"]))
......
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