修改代码测试rake

This commit is contained in:
yuanke 2016-10-19 15:36:27 +08:00
parent dc820b6365
commit 122bf26927
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ namespace :findworktest do
allcount = 0
worktests.each do|worktest|
if !worktest.student_work.nil? && !worktest.student_work.homework_common.nil? && !worktest.student_work.homework_common.homework_tests.nil?
if !worktest.student_work.nil? && !worktest.student_work.homework_common.nil? && !worktest.student_work.homework_common.homework_tests.nil? && (worktest.student_work.homework_common.created_at.to_i > 1469980800)
testcount = worktest.student_work.homework_common.homework_tests.size
if testcount != worktest.results.count && worktest.student_work.system_score == 100
puts "------------------------------------"