Skip to content

Commit

Permalink
Fix script to handle longer ZIP code values
Browse files Browse the repository at this point in the history
The College Scorecard API started using longer ZIP code forms, so we
need to truncate them because our app uses 5-digit codes.
  • Loading branch information
higs4281 committed Oct 19, 2017
1 parent 969043e commit 83c46a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paying_for_college/disclosures/scripts/update_colleges.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def fix_zip5(zip5):
if len(zip5) == 3:
return "00{0}".format(zip5)
else:
return zip5
return zip5[:5]


def update(exclude_ids=[], single_school=None):
Expand Down

0 comments on commit 83c46a3

Please sign in to comment.