Commit f57c8f67 authored by Dmytro Karpenko's avatar Dmytro Karpenko
Browse files

Accept responces from the latest version of the module.

parent 3337fa8a
......@@ -106,7 +106,7 @@ def convert_and_submit_document(es, es_index, recordId, ur_xml):
if not es.exists(index = es_index, doc_type = 'doc', id = recordId):
ur_json = ur_xml_to_json(ur_xml)
es_res = es.index(index = es_index, doc_type = 'doc', id = recordId, body = ur_json)
if es_res['created'] != True:
if es_res['result'] != 'created':
return 1
else:
return 0
......
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