Commit d6c54e5d authored by litaolemo's avatar litaolemo

update

parent ef1f9613
...@@ -60,13 +60,13 @@ for one_scan in write_into_scan: ...@@ -60,13 +60,13 @@ for one_scan in write_into_scan:
count = count + 1 count = count + 1
line = one_scan['_source'] line = one_scan['_source']
doc_id = one_scan['_id'] doc_id = one_scan['_id']
# try: try:
# if line['is_online'] == 1: if line['is_online'] == 1:
# line['is_online'] = True line['is_online'] = True
# else: else:
# line['is_online'] = False line['is_online'] = False
# except: except:
# pass pass
bulk_head = '{"index": {"_id":"%s"}}' % doc_id bulk_head = '{"index": {"_id":"%s"}}' % doc_id
data_str = json.dumps(line, ensure_ascii=False) data_str = json.dumps(line, ensure_ascii=False)
......
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