diff options
-rw-r--r-- | src/olpc/datastore/xapianindex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/olpc/datastore/xapianindex.py b/src/olpc/datastore/xapianindex.py index 46eca98..0be462d 100644 --- a/src/olpc/datastore/xapianindex.py +++ b/src/olpc/datastore/xapianindex.py @@ -343,7 +343,7 @@ class IndexManager(object): q = query.pop('query', None) if q: queries.append(self.parse_query(q)) - if not query: + if not query and not queries: # we emptied it q = self.read_index.query_all() else: |