From 979775ac729b6affcd855a1d5d339246b3096e19 Mon Sep 17 00:00:00 2001 From: James Turk Date: Wed, 5 Oct 2011 15:57:32 -0400 Subject: [PATCH] pass metadata to extract_text --- oyster/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oyster/tasks.py b/oyster/tasks.py index 3f79243..6ec09ca 100644 --- a/oyster/tasks.py +++ b/oyster/tasks.py @@ -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'])