Skip to content

Commit

Permalink
fix(courts): Remove overlapping names
Browse files Browse the repository at this point in the history
Two parent/child courts had overlapping
names that shouldnt have been more specific
  • Loading branch information
flooie committed Jan 5, 2024
1 parent f122f5b commit 58c3ee7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions courts_db/data/courts.json
Original file line number Diff line number Diff line change
Expand Up @@ -6534,13 +6534,8 @@
}
],
"examples": [
"Florida District Courts of Appeal Third District",
"Florida First District Court of Appeal",
"Florida Third District Court of Appeal",
"Florida District Court of Appeal Fourth Circuit",
"Florida District Court of Appeal",
"Florida Court of Appeal Third District",
"Florida Court of Appeal of Florida Third District"
"Florida District Courts of Appeal"
],
"id": "fladistctapp",
"jurisdiction": "F.L.",
Expand Down Expand Up @@ -6611,7 +6606,9 @@
"start": null
}
],
"examples": [],
"examples": [
"Florida First District Court of Appeal"
],
"id": "fladistctapp1",
"level": "iac",
"location": "Florida",
Expand Down Expand Up @@ -26819,7 +26816,7 @@
"id": "nyoytermctnyc",
"level": "",
"location": "New York",
"name": "Court of Oyer And Terminer New York",
"name": "Court of Oyer And Terminer New York, New York County",
"parent": "nyoytermct",
"regex": [
"Oyer and Terminer New York County"
Expand Down
2 changes: 1 addition & 1 deletion courts_db/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def gather_regexes(courts):
"""
regexes = []
for court in courts:
court_regexes = court["regex"] + [court['name']]
court_regexes = court["regex"] + [court["name"]]
for reg_str in court_regexes:
# Unwind the extra gruff in regexes
reg_str = reg_str.replace("\\\\", "\\")
Expand Down

0 comments on commit 58c3ee7

Please sign in to comment.