Skip to content

Commit

Permalink
Fix date format
Browse files Browse the repository at this point in the history
  • Loading branch information
adamclayton committed Sep 3, 2017
1 parent 0c63d7c commit 0c77ce5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.py
Expand Up @@ -48,7 +48,8 @@ def getrecord(html):

## fix data (only run these lines once)
#scraperwiki.sqlite.execute("alter table data add column date_scraped text")
#scraperwiki.sqlite.execute("update data set date_received=replace(date_received,'-','/')")
scraperwiki.sqlite.execute("update data set date_received=replace(date_received,'/','-')")
scraperwiki.sqlite.execute("update data set date_scraped=replace(date_scraped,'/','-')")
#print scraperwiki.sqlite.select('* FROM data')
#print "updating..."
#scraperwiki.sqlite.execute("update data set date_scraped=date_received")
Expand Down

0 comments on commit 0c77ce5

Please sign in to comment.