Skip to content

Commit

Permalink
Clean out table on each run
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Apr 26, 2019
1 parent 24dc54c commit 3b3b636
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scraper.rb
Expand Up @@ -20,4 +20,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 3b3b636

Please sign in to comment.