|
|
@ -66,7 +66,7 @@ namespace :homework_publishtime do
|
|
|
|
.where("homework_type = 4 and end_time <= '#{Time.now}'")
|
|
|
|
.where("homework_type = 4 and end_time <= '#{Time.now}'")
|
|
|
|
homework_commons.each do |homework|
|
|
|
|
homework_commons.each do |homework|
|
|
|
|
# homework_challenge_settings = homework.homework_challenge_settings
|
|
|
|
# homework_challenge_settings = homework.homework_challenge_settings
|
|
|
|
homework.homework_detail_manual.update_column("comment_status", 2)
|
|
|
|
# homework.homework_detail_manual.update_column("comment_status", 2)
|
|
|
|
|
|
|
|
|
|
|
|
if homework.allow_late
|
|
|
|
if homework.allow_late
|
|
|
|
if homework.unified_setting
|
|
|
|
if homework.unified_setting
|
|
|
|