You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if model.__name__ in app.whoosh_indexes:
return app.whoosh_indexes[model.__name__]
else:
return _create_index(app, model)
i.e. _create_index is only called if the model is not in the app whoosh cache.
currently _create_index is called whether or not the model is in the app cache 'whoosh_indexes'
-- since python is strict in its arguments i.e._create_index(app,model) is called beforeapp.whoosh_indexes.get is ever called. No? Or is this what you want... I might have the wrong
end of the stick.
although the comment in whoosh index say that "gets the whoosh index for this model, creating one if it does not exist." the code - lines (168-169)
belies this comment.
The text was updated successfully, but these errors were encountered: