fix error

This commit is contained in:
chiu 2020-04-08 21:13:02 +08:00
parent f844b3d600
commit 57f4ac696a
2 changed files with 2 additions and 1 deletions

View File

@ -13,10 +13,10 @@ module FeedModel
tmp[:feed_name] = feed[:feed_name] tmp[:feed_name] = feed[:feed_name]
tmp.all_contents_for_feed = feed.get_annc tmp.all_contents_for_feed = feed.get_annc
tmp.merge_with_category = feed.merge_with_category tmp.merge_with_category = feed.merge_with_category
tmp.channel_key = feed.channel_key
tmp.category_title = feed.category[:title] rescue {} tmp.category_title = feed.category[:title] rescue {}
tmp.remote_site_url = feed.remote_site_url tmp.remote_site_url = feed.remote_site_url
tmp.channel_title = feed.channel_title_for_cache tmp.channel_title = feed.channel_title_for_cache
feed.remote_site_url
tmp.save tmp.save
end end
def do_before_save def do_before_save

View File

@ -17,6 +17,7 @@ module Feeds
tmp.merge_with_category = site_feed.merge_with_category tmp.merge_with_category = site_feed.merge_with_category
tmp.channel_key = site_feed.channel_key tmp.channel_key = site_feed.channel_key
tmp.category_title = site_feed.category[:title] rescue {} tmp.category_title = site_feed.category[:title] rescue {}
tmp.remote_site_url = site_feed.remote_site_url
tmp.channel_title = site_feed.channel_title_for_cache tmp.channel_title = site_feed.channel_title_for_cache
tmp.save tmp.save
elsif !tmp.nil? elsif !tmp.nil?