Skip to content

Commit

Permalink
Always save record as planningalerts now does versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed May 7, 2019
1 parent dc8f45d commit 672c0de
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scraper.rb
Expand Up @@ -49,9 +49,5 @@
'on_notice_to' => on_notice_to,
'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
ScraperWiki.save_sqlite(['council_reference'], record)
end

0 comments on commit 672c0de

Please sign in to comment.