Force convert long to float
This commit is contained in:
parent
5888d70801
commit
a7e2b60d83
|
@ -148,8 +148,8 @@
|
||||||
(defn prettify-bounty-items [bounty-items]
|
(defn prettify-bounty-items [bounty-items]
|
||||||
(let [format-float (fn [balance]
|
(let [format-float (fn [balance]
|
||||||
(try
|
(try
|
||||||
(format "%.2f" balance)
|
(format "%.2f" (float balance))
|
||||||
(catch java.util.IllegalFormatConversionException ex "0.00")))
|
(catch Exception ex "0.00")))
|
||||||
renames {:user_name :display-name
|
renames {:user_name :display-name
|
||||||
:user_avatar_url :avatar-url
|
:user_avatar_url :avatar-url
|
||||||
:issue_title :issue-title
|
:issue_title :issue-title
|
||||||
|
|
Loading…
Reference in New Issue