mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-30 19:03:01 +01:00
Allow filtering transactions by date in symmetric ledger
This commit is contained in:
parent
b673d26a12
commit
70221bb038
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ def search(q: str, n: Optional[int] = 5, t: Optional[SearchType] = None):
|
||||||
|
|
||||||
if (t == SearchType.Ledger or t == None) and model.ledger_search:
|
if (t == SearchType.Ledger or t == None) and model.ledger_search:
|
||||||
# query transactions
|
# query transactions
|
||||||
hits, entries = symmetric_ledger.query(user_query, model.ledger_search, filters=[explicit_filter])
|
hits, entries = symmetric_ledger.query(user_query, model.ledger_search, filters=[explicit_filter, date_filter])
|
||||||
|
|
||||||
# collate and return results
|
# collate and return results
|
||||||
return symmetric_ledger.collate_results(hits, entries, results_count)
|
return symmetric_ledger.collate_results(hits, entries, results_count)
|
||||||
|
|
Loading…
Reference in a new issue