diff --git a/app/controllers/hack_user_lastest_codes_controller.rb b/app/controllers/hack_user_lastest_codes_controller.rb index d27ec5291..442e9ca3b 100644 --- a/app/controllers/hack_user_lastest_codes_controller.rb +++ b/app/controllers/hack_user_lastest_codes_controller.rb @@ -8,7 +8,7 @@ class HackUserLastestCodesController < ApplicationController def show @my_hack.update_attribute(:submit_status, 0) if @my_hack.submit_status == 1 - @modify = @my_hack.modify_time.to_i < @hack.modify_time.to_i + @modify = @my_hack.modify_time.to_i < @hack.hack_codes.first.modify_time.to_i end def update_code