Skip to content

Commit

Permalink
Merge pull request #7 from everypolitician-scrapers/drop-table-before…
Browse files Browse the repository at this point in the history
…-each-run

Remove table from database before scraping
  • Loading branch information
tmtmtmtm committed May 11, 2017
2 parents 9859425 + dba9567 commit 1606d85
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 @@ -162,5 +162,5 @@ def japanese_data

# puts data

ScraperWiki.sqliteexecute('DELETE FROM data') rescue nil
ScraperWiki.sqliteexecute('DROP TABLE data') rescue nil
ScraperWiki.save_sqlite(%i[name area], data)

0 comments on commit 1606d85

Please sign in to comment.