This commit is contained in:
Charles Haley 2011-04-15 21:13:37 +01:00
parent 315c8c54cd
commit cfe278374d

View File

@ -413,12 +413,12 @@ class ResultCache(SearchQueryParser): # {{{
cast = adjust = lambda x: x cast = adjust = lambda x: x
if query == 'false': if query == 'false':
if dt == 'rating': if dt == 'rating' or location == 'cover':
relop = lambda x,y: not bool(x) relop = lambda x,y: not bool(x)
else: else:
relop = lambda x,y: x is None relop = lambda x,y: x is None
elif query == 'true': elif query == 'true':
if dt == 'rating': if dt == 'rating' or location == 'cover':
relop = lambda x,y: bool(x) relop = lambda x,y: bool(x)
else: else:
relop = lambda x,y: x is not None relop = lambda x,y: x is not None