Commit 5a7867aa authored by litaolemo's avatar litaolemo

update

parent ebca8328
......@@ -55,6 +55,14 @@ for one_scan in write_into_scan:
count = count + 1
line = one_scan['_source']
doc_id = one_scan['_id']
try:
if line['facevideo_is_assistant'] == 1:
line['facevideo_is_assistant'] = True
else:
line['facevideo_is_assistant'] = False
except:
pass
bulk_head = '{"index": {"_id":"%s"}}' % doc_id
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