forked from 0x2620/pandora
places parseCondition takes 2 arguments
This commit is contained in:
parent
d933b4bc43
commit
6485a9d924
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@ def parseCondition(condition, user):
|
||||||
else:
|
else:
|
||||||
exclude = False
|
exclude = False
|
||||||
if op == '-':
|
if op == '-':
|
||||||
q = parseCondition({'key': k, 'value': v[0], 'operator': '>='}) \
|
q = parseCondition({'key': k, 'value': v[0], 'operator': '>='}, user) \
|
||||||
& parseCondition({'key': k, 'value': v[1], 'operator': '<'})
|
& parseCondition({'key': k, 'value': v[1], 'operator': '<'}, user)
|
||||||
if exclude:
|
if exclude:
|
||||||
return ~q
|
return ~q
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue