fix superfastmatch defer syntax

This commit is contained in:
James Turk 2012-04-18 15:23:00 -04:00
parent b697641e13
commit a4c7733618

View File

@ -20,4 +20,4 @@ class SuperFastMatchPush(Task):
doc = kernel.db.tracked.find_one({'_id': doc_id})
text = kernel.extract_text(doc)
doctype, docid = settings.SUPERFASTMATCH_ID_FUNC(doc_id)
sfm.add(doctype, docid, text, **doc['metadata'], defer=True)
sfm.add(doctype, docid, text, defer=True, **doc['metadata'])