forked from 0x2620/pandora
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)
|
||||
if not k:
|
||||
k = 'name'
|
||||
v = condition['value']
|
||||
v = condition.get('value', '')
|
||||
op = condition.get('operator')
|
||||
if not op:
|
||||
op = '='
|
||||
|
|
|
@ -16,7 +16,7 @@ def parseCondition(condition, user):
|
|||
}.get(k, k)
|
||||
if not k:
|
||||
k = 'name'
|
||||
v = condition['value']
|
||||
v = condition.get('value', '')
|
||||
op = condition.get('operator')
|
||||
if not op:
|
||||
op = '='
|
||||
|
|
Loading…
Reference in a new issue