Skip to content

Commit

Permalink
Always save records now
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Apr 30, 2019
1 parent 6a74a9d commit d5b0464
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,5 @@
"date_scraped" => Date.today.to_s
}

if (ScraperWiki.select("* from data where `council_reference`='#{record['council_reference']}'").empty? rescue true)
ScraperWiki.save_sqlite(['council_reference'], record)
else
puts "Skipping already saved record " + record['council_reference']
end
end
ScraperWiki.save_sqlite(['council_reference'], record)
end

0 comments on commit d5b0464

Please sign in to comment.