竞赛-评分设置:启用在线评审不可用
This commit is contained in:
parent
b02c272998
commit
eec1baeaa0
|
@ -242,7 +242,8 @@ class WorksController < ApplicationController
|
|||
def set_score_rule
|
||||
# 未启动在线评审时才能更改评审参数
|
||||
if @contestwork.work_status < 3
|
||||
@contestwork.online_evaluation = params[:online_evaluation] ? 1 : 0
|
||||
@contestwork.online_evaluation = params[:online_evaluation].to_i ? 1 : 0
|
||||
@contestwork.save
|
||||
|
||||
# 如果开启在线评审
|
||||
if params[:online_evaluation]
|
||||
|
|
Loading…
Reference in New Issue