实训评测报错

dev_course
daiao 5 years ago
parent 772d477039
commit 5f7b68bb69

@ -539,7 +539,7 @@ class GamesController < ApplicationController
# 编程题评测
def game_build
sec_key = params[:sec_key]
game_challenge = Challenge.select([:id, :position, :picture_path]).find(@game.challenge_id)
game_challenge = Challenge.select([:id, :position, :picture_path, :exec_time]).find(@game.challenge_id)
# 更新评测次数
@game.update_column(:evaluate_count, (@game.evaluate_count.to_i + 1))

Loading…
Cancel
Save