Skip to content
Permalink
Browse files

Clean out table on each run

  • Loading branch information...
tmtmtmtm committed Apr 26, 2019
1 parent 3bd147a commit ad70f21a580dee1d348e889659bb6663a683d364
Showing with 1 addition and 0 deletions.
  1. +1 −0 scraper.rb
@@ -15,4 +15,5 @@
raise 'No ids' if wanted.empty?

data = Wikidata::Areas.new(ids: wanted).data
ScraperWiki.sqliteexecute('DROP TABLE data') rescue nil
ScraperWiki.save_sqlite(%i(id), data)

0 comments on commit ad70f21

Please sign in to comment.
You can’t perform that action at this time.