Browse Source

fix fortune test

Damien Solimando 9 năm trước cách đây
mục cha
commit
a8ca8e7096
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      frameworks/Groovy/hot/shows/example.show.groovy

+ 1 - 1
frameworks/Groovy/hot/shows/example.show.groovy

@@ -63,7 +63,7 @@ rest.get('/fortunes/mongodb').then {
 		
 		def response = templateHeader
 		fortunes.each {
-			it._id = Integer.parseInt(it._id)
+			it._id = Float.parseFloat(it._id) as Integer
 			response += "<tr><td>${it._id}</td><td>${it.message}</td></tr>"
 		}
 		response += templateTail