Skip to content

Commit c135509

Browse files
committed
slightly more matching
Signed-off-by: John Seekins <john@robot-house.us>
1 parent fd6cd40 commit c135509

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

ice_scrapers/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,15 @@ def repair_name(name: str, locality: str) -> Tuple[str, bool]:
198198
{"match": "BURLEIGH COUNTY", "replace": "BURLEIGH COUNTY JAIL", "locality": "BISMARCK"},
199199
{"match": "NELSON COLEMAN CORRECTION", "replace": "NELSON COLEMAN CORRECTIONS CENTER", "locality": "KILLONA"},
200200
{
201-
"match": "CIMMARRON CORRECTIONAL FACILITY",
201+
"match": "CIMMARRON CORR FACILITY",
202202
"replace": "CIMARRON CORRECTIONAL FACILITY",
203203
"locality": "CUSHING",
204204
},
205+
{
206+
"match": "IAM SECURE ADULT DET. FACILITY",
207+
"replace": "IAH SECURE ADULT DET. FACILITY",
208+
"locality": "LIVINGSTON",
209+
},
205210
]
206211
cleaned = False
207212
for m in matches:

ice_scrapers/vera_data.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,14 @@ def _vera_name_fixes(name: str, city: str) -> Tuple[str, bool]:
181181
{"match": "Burleigh Co. Jail, ND", "replace": "Burleigh County Jail", "city": "Bismarck"},
182182
{"match": "Lubbock County Jail", "replace": "Lubbock County Detention Center", "city": "Lubbock"},
183183
{"match": "Montgomery County Jail", "replace": "Montgomery Ice Processing Center", "city": "Conroe"},
184-
{"match": "Sebastian County Det Cnt", "replace": "Sebastian County Detention Center", "city": "Smith"},
184+
{"match": "Sebastian County Det Cnt", "replace": "Sebastian County Detention Center", "city": "Fort Smith"},
185185
{"match": "Atlanta U.S. Pen.", "replace": "FCI Atlanta", "city": "Atlanta"},
186186
{"match": "Clinton County Corr. Fac.", "replace": "Clinton County Correctional Facility", "city": "Mcelhattan"},
187-
{"match": "Freeborn County Jail, MN", "replace": "Freeborn County Adult Detention", "city": "Albert Lea"},
187+
{
188+
"match": "Freeborn County Jail, MN",
189+
"replace": "Freeborn County Adult Detention Center",
190+
"city": "Albert Lea",
191+
},
188192
]
189193
fixed = False
190194
for m in matches:

0 commit comments

Comments
 (0)