Skip to content

Commit

Permalink
mlindex_v6
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart Mosley authored and Bart Mosley committed May 16, 2011
1 parent 57fcb8e commit 62d9fd9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dbupdate/mlindex_v6.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def updatedb(idxdata, hdr_):
if __name__ == "__main__":

indexfile = PathJoin(DROPBOX, "MarketData", "Benchmarks",
"INDEX20110429update.xls")
"INDEXUpdate.xls")

outputfile = PathJoin(DATADIR, "mlindex.out")

Expand All @@ -172,9 +172,12 @@ def updatedb(idxdata, hdr_):

print("vertical")
#sheets start with 1, sheet0 has column headers
sheets = [1]
sheets = [1, 2]
for sh in sheets:
sh_data = read_sheet1(index_book, sh)
lastkey_id = fileout(sh_data, hdr, outputfile, fmode, lastkey_id+1)
fmode = 'a'


print("\nTo load data in marketdb sqlite3 database: \n%s\n%s" %
(' sqlite> .separator ","',
' sqlite> .import Data/mlindex.out timeseries') )

0 comments on commit 62d9fd9

Please sign in to comment.