fix duplicated announcement when rss feed

This commit is contained in:
thomaschen 2014-02-18 13:57:57 +08:00
parent b9f62c6382
commit 5c8f822993
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ recent_feed.each do |title, bulletin|
categories, coll_bulletin, coll_cat = get_mongo_and_categories
category_id, categories = get_category_id(bulletin[:category], categories, coll_cat)
unless coll_bulletin.find_one(rss_link: bulletin[:link])
unless coll_bulletin.find_one(title: {:zh_tw => title, :en => ""})
bulletin = { _type: "Bulletin",
postdate: bulletin[:date],
created_at: bulletin[:date],