minor tweak.

This commit is contained in:
Bryce
2023-08-19 15:34:03 -07:00
parent e38636a739
commit 8a31112c5b

View File

@@ -247,13 +247,13 @@
[:div.tag.is-danger.is-light (str "$" (Math/round (:transaction/amount r)))])] [:div.tag.is-danger.is-light (str "$" (Math/round (:transaction/amount r)))])]
[:th] [:th]
[:th] [:th]
[:th.text-left ]] [:th.text-left]]
(take 10 (take 10
(for [{:keys [amount date description vendor-name numeric-code score]} similar] (for [{:keys [amount date description vendor-name numeric-code score]} similar]
[:tr [:tr
[:td (subs date 0 10)] [:td (subs date 0 10)]
[:td description] [:td description]
[:td (format "$%.2f" amount)] [:td (some->> amount double (format "$%.2f"))]
[:td vendor-name] [:td vendor-name]
[:td numeric-code] [:td numeric-code]
[:td (format "%.1f%%" (* 100 (double score)))]]))]] [:td (format "%.1f%%" (* 100 (double score)))]]))]]