学生评测数据

dev_shixuns
daiao 6 years ago
parent 7b906e2348
commit de2db8ce32

@ -113,7 +113,7 @@ class StudentWorkController < ApplicationController
pass_consume_time += (game.cost_time / 60.0).to_f pass_consume_time += (game.cost_time / 60.0).to_f
end end
all_time += (game.cost_time / 60.0).to_f all_time += (game.cost_time / 60.0).to_f
user_total_score += game.final_score.to_i < 0 ? 0 : game.challenge.score.to_i user_total_score += game.final_score.to_i <= 0 ? 0 : game.challenge.score.to_i
if myshixun.user_id == @work.user.id if myshixun.user_id == @work.user.id
@game_user_query << [game.id, game.outputs.first.try(:query_index).to_i] @game_user_query << [game.id, game.outputs.first.try(:query_index).to_i]
end end

Loading…
Cancel
Save