Skip to content

Commit

Permalink
Fix bug - undefined variable 'website'
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Vincent committed Feb 17, 2017
1 parent 5ccf0a0 commit 05253fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/recurring.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def perform
#websites = DailyRank.select(:domain).distinct
domains = Domain.includes(:ranks)
domains.each do |domain|
url = website.try(:domain)
url = domain.try(:name)
if domain.ranks.last.date != Date.today
doc = Nokogiri::HTML(open(base_url + url))
new_rank = doc.at_css("strong.metrics-data.align-vmiddle").text.gsub(/\s+/,'')
Expand Down

0 comments on commit 05253fc

Please sign in to comment.