added start date.

This commit is contained in:
Bryce Covert
2020-08-26 06:31:49 -07:00
parent 4ac3e31e91
commit 1832aad335
8 changed files with 293 additions and 242 deletions

View File

@@ -1,7 +1,8 @@
(ns auto-ap.datomic.clients
(:require [datomic.api :as d]
[auto-ap.datomic :refer [uri]]
[clojure.tools.logging :as log]))
[clojure.tools.logging :as log]
[clj-time.coerce :as coerce]))
(defn cleanse [e]
(-> e
@@ -13,6 +14,7 @@
(map (fn [i ba]
(-> ba
(update :bank-account/type :db/ident )
(update :bank-account/start-date #(some-> % (coerce/to-date-time)))
(update :bank-account/sort-order (fn [so] (or so i)))))
(range) bas)))))
(defn get-all []