dont fail if condition does not have a value
This commit is contained in:
parent
018e3d23d0
commit
5347c2e619
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ def parseCondition(condition, user):
|
||||||
}.get(k, k)
|
}.get(k, k)
|
||||||
if not k:
|
if not k:
|
||||||
k = 'name'
|
k = 'name'
|
||||||
v = condition['value']
|
v = condition.get('value', '')
|
||||||
op = condition.get('operator')
|
op = condition.get('operator')
|
||||||
if not op:
|
if not op:
|
||||||
op = '='
|
op = '='
|
||||||
|
|
|
@ -16,7 +16,7 @@ def parseCondition(condition, user):
|
||||||
}.get(k, k)
|
}.get(k, k)
|
||||||
if not k:
|
if not k:
|
||||||
k = 'name'
|
k = 'name'
|
||||||
v = condition['value']
|
v = condition.get('value', '')
|
||||||
op = condition.get('operator')
|
op = condition.get('operator')
|
||||||
if not op:
|
if not op:
|
||||||
op = '='
|
op = '='
|
||||||
|
|
Loading…
Reference in a new issue