Skip to content

Instantly share code, notes, and snippets.

@byroot
Created September 27, 2011 22:38
Show Gist options
  • Select an option

  • Save byroot/1246464 to your computer and use it in GitHub Desktop.

Select an option

Save byroot/1246464 to your computer and use it in GitHub Desktop.
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