Allow filtering transactions by date in symmetric ledger

This commit is contained in:
Debanjum Singh Solanky 2022-07-19 20:58:24 +04:00
parent b673d26a12
commit 70221bb038

View file

@ -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:
# 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
return symmetric_ledger.collate_results(hits, entries, results_count)