Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbradshaw committed Apr 8, 2017
1 parent 42f7024 commit 2b9a3d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.py
Expand Up @@ -62,7 +62,8 @@ def cellval(cell, datemode):
keys = sheet.row_values(14) # this is the original line which is then amended in the line and for loop below
keys = []
for cell in sheet.row(14):
keys.append(cellval(cell,book.datemode))
# keys.append(cellval(cell,book.datemode)) this is what the row below looks like before we add 'str' to convert to string
keys.append(str(cellval(cell,book.datemode)))
#create an empty dictionary variable, 'record'
record = {}
#loop through a range - from the 16th item (15) to a number generated by using the .nrows method on 'sheet' (to find number of rows in that sheet)
Expand Down

0 comments on commit 2b9a3d2

Please sign in to comment.