Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modified to use decimal numbers in the Attendance output on the Repor…

…t Card
  • Loading branch information...
commit 47e96f2e8f7984143d67d57e576fdfd708f9b5bc 1 parent 17849dc
@rnhurt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/reports/report_card.rb
View
4 lib/reports/report_card.rb
@@ -423,11 +423,11 @@ def self.print_attendance(position, student)
# Collect the attendance "assignment" data
evaluations.each do |eval|
data_hash[eval.assignment.name] = attendance.new(eval.assignment.name) if data_hash[eval.assignment.name].blank?
- data_hash[eval.assignment.name][course_term.term.name] = eval.points_earned
+ data_hash[eval.assignment.name][course_term.term.name] = eval.points_earned.to_f
# Aggregate the total attendance
data_hash[eval.assignment.name][:total] = 0 if !data_hash[eval.assignment.name][:total]
- data_hash[eval.assignment.name][:total] += eval.points_earned.to_i unless eval.points_earned.blank?
+ data_hash[eval.assignment.name][:total] += eval.points_earned.to_f unless eval.points_earned.blank?
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.