修改代码测试rake
This commit is contained in:
parent
dc820b6365
commit
122bf26927
|
@ -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 "------------------------------------"
|
||||
|
|
Loading…
Reference in New Issue