Created
September 27, 2011 22:38
-
-
Save byroot/1246464 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/parltrack/current_meps_json_2_sql.py b/parltrack/current_meps_json_2_sql.py | |
| index 1690f46..9053972 100644 | |
| --- a/parltrack/current_meps_json_2_sql.py | |
| +++ b/parltrack/current_meps_json_2_sql.py | |
| @@ -174,8 +174,8 @@ def add_addrs(mep, addrs): | |
| name=bxl["Address"]["Building"], | |
| street=bxl["Address"]["Street"], | |
| postcode=bxl["Address"]["Zip"]) | |
| - mep.bxl_floor = bxl["Address"]["Office"][:3] | |
| - mep.bxl_office_number = bxl["Address"]["Office"][3:] | |
| + mep.bxl_floor = bxl["Address"]["Office"][:2] | |
| + mep.bxl_office_number = bxl["Address"]["Office"][2:] | |
| mep.bxl_fax = bxl["Fax"] | |
| mep.bxl_phone1 = bxl["Phone"] | |
| mep.bxl_phone2 = bxl["Phone"][:-4] + "7" + bxl["Phone"][-3:] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment