Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/olpc/datastore/xapianindex.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/olpc/datastore/xapianindex.py')
-rw-r--r--src/olpc/datastore/xapianindex.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/olpc/datastore/xapianindex.py b/src/olpc/datastore/xapianindex.py
index 4aa4632..f8a26b4 100644
--- a/src/olpc/datastore/xapianindex.py
+++ b/src/olpc/datastore/xapianindex.py
@@ -193,7 +193,6 @@ class IndexManager(object):
with self._write_lock:
for item in data:
uid, vid, doc, operation, filestuff = item
-
if operation is DELETE:
self.write_index.delete(uid)
logger.info("deleted content %s" % (uid,))
@@ -215,7 +214,7 @@ class IndexManager(object):
" indexing at %s. Not"
" Found" % filename)
- fp = converter(filename, mimetype)
+ fp = converter(filename, mimetype=mimetype)
if fp:
# read in at a fixed block size, try to
# conserve memory. If this doesn't work