Skip to content

Commit

Permalink
added .gitignore and changed a Google Sheet column name
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred Sawatzky committed Mar 14, 2016
1 parent 5bfbdc2 commit bdf642e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ TileMillProjects/output/
TileMillProjects/project/test/
GoogleDrive-BeeSafe---/
GoogleDrive-BeeSafe-backup/
code/beesafeboulder-58b651d15092.json
BeeSafeBoulder.vpp*
BeeSafeBoulder.vux
13 changes: 8 additions & 5 deletions code/create_pledge_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,11 @@ def data(row):
if asr_id in asr_id_rows:
row = asr_id_rows[asr_id]

writer.writerow({'Name': row['Name'],
'Address': row['Normalized Street Address'],
'Email': row['Email Address'],
'Pledge': row['Pledge Level'],
'Comments': row['Comments']})
try:
writer.writerow({'Name': row['Name'].encode('ascii','ignore'),
'Address': row['Normalized Street Address'],
'Email': row['Email Address'],
'Pledge': row['Pledge Level'],
'Comments': row['Comments'].encode('ascii','ignore')})
except UnicodeEncodeError:
print row
2 changes: 1 addition & 1 deletion code/update_pledge_spreadsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def update_feature(addressLayer, addressFeature, parcelLayer, sht, row_number, d
# updated by this script. Continue to the next row.
continue

entered_street_address = row['Street Address']
entered_street_address = row['Street Address and Zip Code (No P.O. Boxes, please)']

matches = []
# first, try a strict match
Expand Down

0 comments on commit bdf642e

Please sign in to comment.