diff --git a/app/models/swf_asset.rb b/app/models/swf_asset.rb index 9fda5106..bc4097f5 100644 --- a/app/models/swf_asset.rb +++ b/app/models/swf_asset.rb @@ -109,8 +109,11 @@ class SwfAsset < ActiveRecord::Base !has_image? || image_pending_repair? end + REPAIR_PENDING_EXPIRES = 1.hour def image_pending_repair? - reported_broken_at && (converted_at.nil? || reported_broken_at > converted_at) + reported_broken_at && + (converted_at.nil? || reported_broken_at > converted_at) && + reported_broken_at > REPAIR_PENDING_EXPIRES.ago end attr_accessor :item