fixes compilation bug.
This commit is contained in:
@@ -40,8 +40,7 @@
|
|||||||
:serialize #(or (:ident %) (:db/ident %) %)}
|
:serialize #(or (:ident %) (:db/ident %) %)}
|
||||||
:iso_date {:parse #(time/parse % time/iso-date)
|
:iso_date {:parse #(time/parse % time/iso-date)
|
||||||
:serialize #(time/unparse % time/iso-date)}
|
:serialize #(time/unparse % time/iso-date)}
|
||||||
:money {:parse #(do
|
:money {:parse #(cond (and (string? %)
|
||||||
(cond (and (string? %)
|
|
||||||
(not (str/blank? %)))
|
(not (str/blank? %)))
|
||||||
(Double/parseDouble %)
|
(Double/parseDouble %)
|
||||||
|
|
||||||
@@ -63,9 +62,7 @@
|
|||||||
:else
|
:else
|
||||||
%)
|
%)
|
||||||
}
|
}
|
||||||
:percentage {:parse #(do
|
:percentage {:parse #(cond (and (string? %)
|
||||||
(log/info "value is" %)
|
|
||||||
(cond (and (string? %)
|
|
||||||
(not (str/blank? %)))
|
(not (str/blank? %)))
|
||||||
(Double/parseDouble %)
|
(Double/parseDouble %)
|
||||||
|
|
||||||
@@ -73,7 +70,7 @@
|
|||||||
(double %)
|
(double %)
|
||||||
|
|
||||||
:else
|
:else
|
||||||
%))
|
%)
|
||||||
:serialize #(if (double? %)
|
:serialize #(if (double? %)
|
||||||
(str %)
|
(str %)
|
||||||
%)}}
|
%)}}
|
||||||
|
|||||||
Reference in New Issue
Block a user