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