diff --git a/app/views/bids/_homework_list.html.erb b/app/views/bids/_homework_list.html.erb index 43664619..0f605d6f 100644 --- a/app/views/bids/_homework_list.html.erb +++ b/app/views/bids/_homework_list.html.erb @@ -75,7 +75,7 @@ 作业评分: - <%= format("%.2f", homework.rate_averages.first.try(:avg).to_i ) %> + <%= format("%.2f", homework.rate_averages.first.try(:avg).to_f ) %> <% if Time.parse(@bid.deadline.to_s) < Time.parse(homework.created_at.to_s) %>