more invoices.

This commit is contained in:
Bryce Covert
2019-10-24 21:05:01 -07:00
parent aa90c1b4c1
commit 10ee974eaf
3 changed files with 17 additions and 3 deletions

View File

@@ -79,6 +79,7 @@
(let [fuzzy-match (->> clients
(mapcat (fn [{:keys [:db/id :client/matches :client/name] :as client :or {matches []}}]
(map (fn [m]
(println m invoice-client-name)
[client (m/jaccard (.toLowerCase invoice-client-name) (.toLowerCase m))])
(conj matches name))))
(filter #(< (second %) 0.25))