|
|
|
@ -500,7 +500,7 @@ class GamesService
|
|
|
|
|
game.update_column(:evaluate_count, (game.evaluate_count.to_i + 1))
|
|
|
|
|
# 清空代码评测信息
|
|
|
|
|
msg = game.run_code_message
|
|
|
|
|
msg.update_column(:status => 0, :message => "") if msg.present?
|
|
|
|
|
msg.update_attributes(:status => 0, :message => nil) if msg.present?
|
|
|
|
|
# 更新时间是为了TPM端显示的更新,退出实训及访问实训的时候会更新
|
|
|
|
|
myshixun.update_column(:updated_at, Time.now)
|
|
|
|
|
|
|
|
|
|