Skip to content

Commit

Permalink
Change table name from "swdata" to "data" for morph.io
Browse files Browse the repository at this point in the history
  • Loading branch information
tfmorris committed May 13, 2015
1 parent 5ef77bc commit c3e0ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
BASE = SITE + '/radio4/features/desert-island-discs/find-a-castaway'

if scraperwiki.sqlite.show_tables():
past = [(i['date'],i['guest']) for i in scraperwiki.sqlite.select("* from swdata WHERE type == 'url'")]
past = [(i['date'],i['guest']) for i in scraperwiki.sqlite.select("* from data WHERE type == 'url'")]
else:
past = []
print 'Database contains %d past entries' % len(past)
Expand Down

0 comments on commit c3e0ac8

Please sign in to comment.