# HG changeset patch # User Nattee Niparnan # Date 2016-10-27 14:55:14 # Node ID 20f955456e9bb321c52b2b2261bbb605fae06545 # Parent e3dfadbca639b86a0556410e929246bdb00f935c fix bug in score report diff --git a/app/controllers/report_controller.rb b/app/controllers/report_controller.rb --- a/app/controllers/report_controller.rb +++ b/app/controllers/report_controller.rb @@ -52,8 +52,8 @@ end #set up range from param - since_id = params.fetch(:min_id, 0).to_i - until_id = params.fetch(:max_id, 0).to_i + since_id = params.fetch(:from_id, 0).to_i + until_id = params.fetch(:to_id, 0).to_i #calculate the routine @scorearray = calculate_max_score(@problems, @users,since_id,until_id)