From fc612a71d3f686fd91f46b56708f3d347748b341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pauline=20Gom=C3=A9r?= Date: Sat, 16 Feb 2013 13:23:51 +0100 Subject: [PATCH] moved loading of plugins to initialization --- anki/find.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/find.py b/anki/find.py index 04d72979b..31b37e59e 100644 --- a/anki/find.py +++ b/anki/find.py @@ -27,6 +27,7 @@ class Finder(object): self.search['prop'] = self._findProp self.search['rated'] = self._findRated self.search['tag'] = self._findTag + self._loadSearchHookPlugins() def _loadSearchHookPlugins(self): @@ -125,7 +126,6 @@ select distinct(n.id) from cards c, notes n where c.nid=n.id and """+preds ###################################################################### def _where(self, tokens): - self._loadSearchHookPlugins() # state and query s = dict(isnot=False, isor=False, join=False, q="", bad=False) args = []