fixes compilation bug.
This commit is contained in:
@@ -40,9 +40,8 @@
|
|||||||
: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 %)
|
||||||
|
|
||||||
(and (string? %)
|
(and (string? %)
|
||||||
@@ -52,8 +51,8 @@
|
|||||||
(int? %)
|
(int? %)
|
||||||
(double %)
|
(double %)
|
||||||
|
|
||||||
:else
|
:else
|
||||||
%)
|
%)
|
||||||
:serialize #(cond (double? %)
|
:serialize #(cond (double? %)
|
||||||
(str %)
|
(str %)
|
||||||
|
|
||||||
@@ -63,17 +62,15 @@
|
|||||||
:else
|
:else
|
||||||
%)
|
%)
|
||||||
}
|
}
|
||||||
:percentage {:parse #(do
|
:percentage {:parse #(cond (and (string? %)
|
||||||
(log/info "value is" %)
|
(not (str/blank? %)))
|
||||||
(cond (and (string? %)
|
(Double/parseDouble %)
|
||||||
(not (str/blank? %)))
|
|
||||||
(Double/parseDouble %)
|
|
||||||
|
|
||||||
(int? %)
|
(int? %)
|
||||||
(double %)
|
(double %)
|
||||||
|
|
||||||
:else
|
:else
|
||||||
%))
|
%)
|
||||||
:serialize #(if (double? %)
|
:serialize #(if (double? %)
|
||||||
(str %)
|
(str %)
|
||||||
%)}}
|
%)}}
|
||||||
|
|||||||
Reference in New Issue
Block a user