fix for extract_text usage

This commit is contained in:
James Turk 2011-10-05 15:55:48 -04:00
parent 5b71fa4aea
commit 27a338abf5

View File

@ -71,7 +71,7 @@ class ExternalStoreTask(Task):
text = extract_text(filedata) text = extract_text(filedata)
# put the document into the data store # put the document into the data store
result = self.upload_document(doc_id, extract_text, doc['metadata']) result = self.upload_document(doc_id, text, doc['metadata'])
doc[self.external_store + '_id'] = result doc[self.external_store + '_id'] = result
self.client.db.tracked.save(doc, safe=True) self.client.db.tracked.save(doc, safe=True)