places parseCondition takes 2 arguments

This commit is contained in:
j 2011-05-30 10:54:13 +02:00
parent 1cabf3d924
commit 97913473a0

View file

@ -32,8 +32,8 @@ def parseCondition(condition, user):
else:
exclude = False
if op == '-':
q = parseCondition({'key': k, 'value': v[0], 'operator': '>='}) \
& parseCondition({'key': k, 'value': v[1], 'operator': '<'})
q = parseCondition({'key': k, 'value': v[0], 'operator': '>='}, user) \
& parseCondition({'key': k, 'value': v[1], 'operator': '<'}, user)
if exclude:
return ~q
else: