Force convert long to float

This commit is contained in:
Vitaliy Vlasov 2018-03-12 17:35:38 +02:00
parent 5888d70801
commit a7e2b60d83
No known key found for this signature in database
GPG Key ID: A7D57C347F2B2964
1 changed files with 2 additions and 2 deletions

View File

@ -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