mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 06:23:57 -05:00
allow hook to modify search text
This commit is contained in:
parent
4dac44c93f
commit
74d3b2ed41
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ class DataModel(QAbstractTableModel):
|
|||
ctx = SearchContext(search=txt)
|
||||
gui_hooks.browser_will_search(ctx)
|
||||
if ctx.card_ids is None:
|
||||
ctx.card_ids = self.col.find_cards(txt, order=ctx.order)
|
||||
ctx.card_ids = self.col.find_cards(ctx.search, order=ctx.order)
|
||||
gui_hooks.browser_did_search(ctx)
|
||||
self.cards = ctx.card_ids
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue