Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danozgriff committed Dec 9, 2015
1 parent cc5e6dc commit f6c8eaa
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 @@ -26,7 +26,7 @@
#scraperwiki.sqlite.execute("drop table if exists company")
#scraperwiki.sqlite.execute("create table company (`GICS industry group` string, `ASX code` string, `Company name` string, `Last Refreshed` date, `Top 500` char(1))")
scraperwiki.sqlite.execute("drop table if exists Signal_History")
scraperwiki.sqlite.execute("create table Signal_History (`ASX code` varchar2(8) NOT NULL, `Date` date PRIMARY KEY NOT NULL, `Price` real NOT NULL, `Signal` varchar2(15) NOT NULL, `Confirmation` char(1) NOT NULL, `AUD 100` real NOT NULL, PRIMARY KEY (`ASX code`, `Date`)")
scraperwiki.sqlite.execute("create table Signal_History (`ASX code` varchar2(8) NOT NULL, `Date` date PRIMARY KEY NOT NULL, `Price` real NOT NULL, `Signal` varchar2(15) NOT NULL, `Confirmation` char(1) NOT NULL, `AUD 100` real NOT NULL, PRIMARY KEY (`ASX code`, `Date`))")

#scraperwiki.sqlite.execute("insert into company values ('test', 'test', 'test', date('2015-12-07'), 'Y')")
#scraperwiki.sqlite.execute("delete from company where `ASX code` = 'test'")
Expand Down

0 comments on commit f6c8eaa

Please sign in to comment.