minor cleanup. no errors anymore.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{:linters {:clojure-lsp/unused-public-var {:exclude-when-defined-by #{mount.core/defstate}}
|
{:linters {:clojure-lsp/unused-public-var {:exclude-when-defined-by #{mount.core/defstate}}
|
||||||
:clojure-lsp/unresolved-var {:exclude [(amazonica.aws.s3 amazonica.aws.sqs)]}
|
:clojure-lsp/unresolved-var {:exclude [(amazonica.aws.s3 amazonica.aws.sqs)]}
|
||||||
:unresolved-var {:exclude [amazonica.aws.s3]}
|
:unresolved-var {:exclude [amazonica.aws.s3 amazonica.aws.sqs]}
|
||||||
|
:unused-public-var {:exclude-when-defined-by #{mount.core/defstate}}
|
||||||
:private-call {:level :off}
|
:private-call {:level :off}
|
||||||
:mount/defstate {:level :warning}}
|
:mount/defstate {:level :warning}}
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,6 @@
|
|||||||
(api/token-node 'do)
|
(api/token-node 'do)
|
||||||
(list*
|
(list*
|
||||||
|
|
||||||
(api/token-node 'fn*)
|
(api/token-node 'fn)
|
||||||
(api/vector-node [])
|
(api/vector-node [])
|
||||||
args)))))})))
|
args)))))})))
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
[clojure.data.csv :as csv]
|
[clojure.data.csv :as csv]
|
||||||
[clj-time.coerce :as c]
|
[clj-time.coerce :as c]
|
||||||
[clj-time.core :as t]
|
[clj-time.core :as t]
|
||||||
|
[clj-time.periodic :as per]
|
||||||
[clojure.java.io :as io]
|
[clojure.java.io :as io]
|
||||||
[clojure.string :as str]
|
[clojure.string :as str]
|
||||||
|
|
||||||
@@ -485,11 +486,11 @@
|
|||||||
|
|
||||||
(println "orders")
|
(println "orders")
|
||||||
(lc/with-context {:source "Historical loading data"}
|
(lc/with-context {:source "Historical loading data"}
|
||||||
(doseq [d (clj-time.periodic/periodic-seq (t/plus (t/today) (t/days (- days)))
|
(doseq [d (per/periodic-seq (t/plus (t/today) (t/days (- days)))
|
||||||
(t/today)
|
(t/today)
|
||||||
(t/days 1))]
|
(t/days 1))]
|
||||||
(println d)
|
(println d)
|
||||||
(square/upsert client square-location d)))
|
(square/upsert client square-location d (t/plus d t/days 1))))
|
||||||
|
|
||||||
(println "refunds")
|
(println "refunds")
|
||||||
(square/upsert-refunds client square-location)
|
(square/upsert-refunds client square-location)
|
||||||
@@ -497,7 +498,7 @@
|
|||||||
|
|
||||||
(println "settlements")
|
(println "settlements")
|
||||||
(with-redefs [square/lookup-dates (fn lookup-dates []
|
(with-redefs [square/lookup-dates (fn lookup-dates []
|
||||||
(->> (clj-time.periodic/periodic-seq (t/plus (t/today) (t/days (- days)))
|
(->> (per/periodic-seq (t/plus (t/today) (t/days (- days)))
|
||||||
(t/today)
|
(t/today)
|
||||||
(t/days 2))
|
(t/days 2))
|
||||||
(map (fn [d]
|
(map (fn [d]
|
||||||
@@ -517,7 +518,8 @@
|
|||||||
|
|
||||||
(println "orders")
|
(println "orders")
|
||||||
(lc/with-context {:source "Historical loading data"}
|
(lc/with-context {:source "Historical loading data"}
|
||||||
(square/upsert client square-location (c/to-date-time date)))))
|
(square/upsert client square-location (c/to-date-time date)
|
||||||
|
(t/plus (c/to-date-time date) (t/days 1))))))
|
||||||
|
|
||||||
(defn upsert-invoice-amounts [tsv]
|
(defn upsert-invoice-amounts [tsv]
|
||||||
(let [data (with-open [reader (io/reader (char-array tsv))]
|
(let [data (with-open [reader (io/reader (char-array tsv))]
|
||||||
|
|||||||
Reference in New Issue
Block a user