Skip to content

Commit

Permalink
Fix image paths
Browse files Browse the repository at this point in the history
Images should be against /, not against /index.php
  • Loading branch information
tmtmtmtm committed Jul 28, 2015
1 parent ffd9642 commit 259dd68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def scrape_person(url, area)
term: '5',
source: url,
}
data[:image] = URI.join(url, data[:image]).to_s unless data[:image].to_s.empty?
data[:image] = URI.join('http://house.gov.by/', data[:image]).to_s unless data[:image].to_s.empty?
puts data
ScraperWiki.save_sqlite([:id, :term], data)
end
Expand Down

0 comments on commit 259dd68

Please sign in to comment.