avoid division by 0
This commit is contained in:
parent
3bed914023
commit
ba186ffd10
2 changed files with 7 additions and 3 deletions
|
|
@ -59,6 +59,9 @@ def parseCondition(condition, user):
|
|||
return ~q
|
||||
else:
|
||||
return q
|
||||
if (not exclude and op == '=' or op in ('$', '^', '>=', '<')) and v == '':
|
||||
return Q(True)
|
||||
|
||||
if k.endswith('__id'):
|
||||
v = decode_id(v)
|
||||
if isinstance(v, bool): #featured and public flag
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue