From f9f07a7d5551cd3be56a55c60642a5f972314d64 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 25 May 2020 16:54:57 +1000 Subject: [PATCH] allow hook to modify search text --- qt/aqt/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/browser.py b/qt/aqt/browser.py index 3ee8623f6..4cf2b5bd0 100644 --- a/qt/aqt/browser.py +++ b/qt/aqt/browser.py @@ -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: