|
| 1 | +import copy |
| 2 | + |
| 3 | +""" |
| 4 | +Handle manually discovered/managed facilities |
| 5 | +""" |
| 6 | +custom_facilities = { |
| 7 | + "North Highway 83,McCook,NE,69001": { |
| 8 | + "_repaired_record": False, |
| 9 | + "address": { |
| 10 | + "administrative_area": "NE", |
| 11 | + "country": "United States", |
| 12 | + "locality": "McCook", |
| 13 | + "postal_code": "69001", |
| 14 | + "street": "North Highway 83", |
| 15 | + }, |
| 16 | + "address_str": "North Highway 83,McCook,NE,69001", |
| 17 | + "facility_type": { |
| 18 | + "expanded_name": "Pending Classication and Inclusion", |
| 19 | + "description": "Facilities discovered through other means that may become ICE/DHS facilities", |
| 20 | + "id": "Pending", |
| 21 | + }, |
| 22 | + "field_office": { |
| 23 | + "address": { |
| 24 | + "administrative_area": "MN", |
| 25 | + "country": "United States", |
| 26 | + "locality": "Fort Snelling", |
| 27 | + "postal_code": "55111", |
| 28 | + "street": "1 Federal Drive Suite 1601", |
| 29 | + }, |
| 30 | + "address_str": "1 Federal Drive Suite 1601 Fort Snelling, MN 55111", |
| 31 | + "aor": "Iowa, Minnesota, Nebraska, North Dakota, South Dakota", |
| 32 | + |
| 33 | + "field_office": "St Paul Field Office", |
| 34 | + "id": "SPM", |
| 35 | + "name": "Fort Snelling - ERO", |
| 36 | + "phone": "(612) 843-8600", |
| 37 | + "source_urls": ["https://www.ice.gov/contact/field-offices?page=2&exposed_form_display=1"], |
| 38 | + }, |
| 39 | + "image_url": "https://corrections.nebraska.gov/sites/default/files/2024-08/wec_thumbnail.jpg", |
| 40 | + "inspection": { |
| 41 | + "last_date": None, |
| 42 | + "last_rating": "", |
| 43 | + "last_type": "", |
| 44 | + }, |
| 45 | + "name": "Work Ethic Camp", |
| 46 | + "osm": { |
| 47 | + "latitude": 40.22851, |
| 48 | + "longitude": -100.548001, |
| 49 | + "search_query": "", |
| 50 | + "url": "https://www.openstreetmap.org/way/456014773#map=19/40.228251/-100.648001", |
| 51 | + }, |
| 52 | + "page_updated_date": None, |
| 53 | + "phone": "308-345-8405", |
| 54 | + "population": { |
| 55 | + "female": {"allowed": False, "criminal": 0, "non_criminal": 0}, |
| 56 | + "avg_stay_length": 0, |
| 57 | + "ice_threat_level": { |
| 58 | + "level_1": 0, |
| 59 | + "level_2": 0, |
| 60 | + "level_3": 0, |
| 61 | + "none": 0, |
| 62 | + }, |
| 63 | + "male": {"allowed": False, "criminal": 0, "non_criminal": 0}, |
| 64 | + "housing": {"guaranteed_min": 0, "mandatory": 0}, |
| 65 | + "security_threat": { |
| 66 | + "high": 0, |
| 67 | + "low": 0, |
| 68 | + "medium_high": 0, |
| 69 | + "medium_low": 0, |
| 70 | + }, |
| 71 | + "total": 0, |
| 72 | + }, |
| 73 | + "source_urls": [ |
| 74 | + "https://corrections.nebraska.gov/facilities/work-ethic-camp", |
| 75 | + ], |
| 76 | + "wikidata": {"page_url": "", "search_query": ""}, |
| 77 | + "wikipedia": {"page_url": "", "search_query": ""}, |
| 78 | + }, |
| 79 | +} |
| 80 | + |
| 81 | + |
| 82 | +def insert_additional_facilities(facilities_data: dict) -> dict: |
| 83 | + for facility_id, facility in custom_facilities.items(): |
| 84 | + facilities_data["facilities"][facility_id] = copy.deepcopy(facility) |
| 85 | + return facilities_data |
0 commit comments