From 0bb57949c9a673be49e87c69469128b9928a82da Mon Sep 17 00:00:00 2001 From: Benjamin Saller Date: Fri, 20 Jul 2007 18:34:51 +0000 Subject: query building bug from last night --- 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: -- cgit v0.9.1