From 57f4ac696aa117209abc30d7e4639a9dace9e743 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 8 Apr 2020 21:13:02 +0800 Subject: [PATCH] fix error --- lib/feed_model/cache.rb | 2 +- lib/feeds/engine.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/feed_model/cache.rb b/lib/feed_model/cache.rb index a0569fe..1b29f03 100644 --- a/lib/feed_model/cache.rb +++ b/lib/feed_model/cache.rb @@ -13,10 +13,10 @@ module FeedModel tmp[:feed_name] = feed[:feed_name] tmp.all_contents_for_feed = feed.get_annc tmp.merge_with_category = feed.merge_with_category + tmp.channel_key = feed.channel_key tmp.category_title = feed.category[:title] rescue {} tmp.remote_site_url = feed.remote_site_url tmp.channel_title = feed.channel_title_for_cache - feed.remote_site_url tmp.save end def do_before_save diff --git a/lib/feeds/engine.rb b/lib/feeds/engine.rb index 4be8c42..dbccb70 100644 --- a/lib/feeds/engine.rb +++ b/lib/feeds/engine.rb @@ -17,6 +17,7 @@ module Feeds tmp.merge_with_category = site_feed.merge_with_category tmp.channel_key = site_feed.channel_key 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.save elsif !tmp.nil?