mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
moved loading of plugins to initialization
This commit is contained in:
parent
b07254cb09
commit
fc612a71d3
1 changed files with 1 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ class Finder(object):
|
||||||
self.search['prop'] = self._findProp
|
self.search['prop'] = self._findProp
|
||||||
self.search['rated'] = self._findRated
|
self.search['rated'] = self._findRated
|
||||||
self.search['tag'] = self._findTag
|
self.search['tag'] = self._findTag
|
||||||
|
self._loadSearchHookPlugins()
|
||||||
|
|
||||||
|
|
||||||
def _loadSearchHookPlugins(self):
|
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):
|
def _where(self, tokens):
|
||||||
self._loadSearchHookPlugins()
|
|
||||||
# state and query
|
# state and query
|
||||||
s = dict(isnot=False, isor=False, join=False, q="", bad=False)
|
s = dict(isnot=False, isor=False, join=False, q="", bad=False)
|
||||||
args = []
|
args = []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue