bugfix #100: Null value can only be compared with comparator: eq/equals/==

This commit is contained in:
debugtalk
2018-02-23 20:24:32 +08:00
parent 0b4d8fe6fb
commit 7dec77ffc3
3 changed files with 8 additions and 5 deletions

View File

@@ -119,7 +119,7 @@ def query_json(json_content, query, delimiter='.'):
def get_uniform_comparator(comparator):
""" convert comparator alias to uniform name
"""
if comparator in ["eq", "equals", "=="]:
if comparator in ["eq", "equals", "==", "is"]:
return "equals"
elif comparator in ["lt", "less_than"]:
return "less_than"