empty value

This commit is contained in:
j 2023-07-06 13:59:41 +05:30
parent 962be98592
commit 92d5c6e763

View file

@ -33,7 +33,7 @@ def parseCondition(condition, user, owner=None):
k = {'id': 'public_id'}.get(k, k) k = {'id': 'public_id'}.get(k, k)
if not k: if not k:
k = '*' k = '*'
v = condition['value'] v = condition.get('value', '')
op = condition.get('operator') op = condition.get('operator')
if not op: if not op:
op = '=' op = '='