Fix enable/disable bug (#3662)
### What problem does this PR solve? Fix enable/disable bug #3628 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --------- Co-authored-by: liuhua <10215101452@stu.ecun.edu.cn> Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
This commit is contained in:
parent
d61bbe6750
commit
7f48acb3fd
@ -294,7 +294,7 @@ class ESConnection(DocStoreConnection):
|
|||||||
f"Condition `{str(k)}={str(v)}` value type is {str(type(v))}, expected to be int, str or list.")
|
f"Condition `{str(k)}={str(v)}` value type is {str(type(v))}, expected to be int, str or list.")
|
||||||
scripts = []
|
scripts = []
|
||||||
for k, v in newValue.items():
|
for k, v in newValue.items():
|
||||||
if not isinstance(k, str) or not v:
|
if (not isinstance(k, str) or not v) and k != "available_int":
|
||||||
continue
|
continue
|
||||||
if isinstance(v, str):
|
if isinstance(v, str):
|
||||||
scripts.append(f"ctx._source.{k} = '{v}'")
|
scripts.append(f"ctx._source.{k} = '{v}'")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user