added description

This commit is contained in:
Bryce Covert
2021-10-11 18:36:58 -07:00
parent d20ae49e39
commit 20c2181770
4 changed files with 18 additions and 3 deletions

View File

@@ -59,6 +59,13 @@
'[(re-find ?note-pattern ?n)]]}
:args [(re-pattern (str "(?i)" (:note args)))]})
(not (str/blank? (:description args)))
(merge-query {:query {:in ['?description]
:where ['[?e :transaction-rule/description ?d]
'[(clojure.string/lower-case ?d) ?d2]
'[(clojure.string/includes? ?d2 ?description)]]}
:args [(clojure.string/lower-case (:description args))]})
true
(merge-query {:query {:find ['?e]
:where ['[?e :transaction-rule/transaction-approval-status]]}}))]