def uniq_deals(deals = [])
      titles = deals.map(&:title).uniq
      titles.map do |title|
        deals.map do |deal|
          deal if deal.try(:title) == title
        end.compact.last
      end.flatten
    end
def uniq_deals(deals = [])
      titles = deals.map(&:title).uniq
      titles.map do |title|
        deals.map do |deal|
          deal if deal.try(:title) == title
        end.compact.last
      end.flatten
    end
Uniq deals from Sqoot, because there are some many duplicated deals
 with different ids
 Simplely distinguish them by their titles