pass metadata to extract_text

This commit is contained in:
James Turk 2011-10-05 15:57:32 -04:00
parent 27a338abf5
commit 979775ac72

View File

@ -68,7 +68,7 @@ class ExternalStoreTask(Task):
# get the document
doc = self.client.db.tracked.find_one({'_id': ObjectId(doc_id)})
filedata = self.client.get_version(doc['url']).read()
text = extract_text(filedata)
text = extract_text(filedata, doc['metadata'])
# put the document into the data store
result = self.upload_document(doc_id, text, doc['metadata'])