|
|
|
@ -147,7 +147,7 @@ module ExportHelper
|
|
|
|
|
end
|
|
|
|
|
w_7 = w.work_status == 0 ? '--' : myshixun.try(:passed_count).to_s+"/"+shixun.challenges_count.to_s
|
|
|
|
|
w_8 = myshixun ? myshixun.try(:passed_time) == "--" ? "--" : format_time(myshixun.try(:passed_time)) : "--" # 通关时间
|
|
|
|
|
w_9 = myshixun ? (myshixun.try(:passed_count) > 0 ? myshixun.total_spend_time : '--') : "--" #总耗时
|
|
|
|
|
w_9 = myshixun ? (myshixun.try(:passed_count).to_i > 0 ? myshixun.total_spend_time : '--') : "--" #总耗时
|
|
|
|
|
w_10 = myshixun ? myshixun.output_times : 0 #评测次数
|
|
|
|
|
w_11 = myshixun ? myshixun.total_score : "--" #获得经验值
|
|
|
|
|
w_12 = w.final_score.present? ? w.final_score : 0
|
|
|
|
@ -163,7 +163,7 @@ module ExportHelper
|
|
|
|
|
end
|
|
|
|
|
w_15 = w.work_score.nil? ? "--" : w.work_score.round(1)
|
|
|
|
|
w_16 = w.update_time ? format_time(w.update_time) : "--" "更新时间"
|
|
|
|
|
w_17 = (game_spend_time w.cost_time)
|
|
|
|
|
w_17 = w.cost_time ? (game_spend_time w.cost_time) : "--"
|
|
|
|
|
teacher_comments = w.student_works_scores
|
|
|
|
|
if teacher_comments.present?
|
|
|
|
|
w_18 = ""
|
|
|
|
|