From b8913476ba409336488f1b579b3479ed2e02b3fd Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Tue, 16 Aug 2022 00:36:06 +0300 Subject: [PATCH] Fix if condition in router to trigger markdown search --- src/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.py b/src/router.py index 53cf7bd0..191f9362 100644 --- a/src/router.py +++ b/src/router.py @@ -81,7 +81,7 @@ def search(q: str, n: Optional[int] = 5, t: Optional[SearchType] = None, r: Opti results = text_search.collate_results(hits, entries, results_count) collate_end = time.time() - if (t == SearchType.Markdown or t == None) and state.model.orgmode_search: + if (t == SearchType.Markdown or t == None) and state.model.markdown_search: # query markdown files query_start = time.time() hits, entries = text_search.query(user_query, state.model.markdown_search, rank_results=r, device=state.device, filters=[ExplicitFilter(), DateFilter()], verbose=state.verbose)