Skip to content

Commit

Permalink
Reorder and rename courts for heirarchical view
Browse files Browse the repository at this point in the history
Rename 'list name' to 'grouped name' to make it clearer in which contexts each name is used
  • Loading branch information
timcowlishaw committed Oct 10, 2023
1 parent 8d72fdc commit e042c32
Show file tree
Hide file tree
Showing 5 changed files with 182 additions and 159 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ The list of courts is defined in `src/ds_caselaw_utils/data/court_names.yml`. Th
# An internal code for this court:
code: EWHC-SeniorCourtsCosts
# The public facing name of the court:
name: Senior Courts Costs Office
# An alternative wording for use in listings (optional, defaults to `name`)
list_name: High Court (Senior Court Costs Office)
name: High Court (Senior Courts Costs Office)
# An optional alternative wording for use when displayed in grouped format (defaults to 'name'):
grouped_name: Senior Court Costs Office
# A URL to link to for more information on this court:
link: https://www.gov.uk/courts-tribunals/senior-courts-costs-office
# A regex matching neutral citations for this court's judgments:
Expand Down
2 changes: 1 addition & 1 deletion src/ds_caselaw_utils/courts.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Court:
def __init__(self, data):
self.code = data.get("code")
self.name = data.get("name")
self.list_name = data.get("list_name") or data.get("name")
self.grouped_name = data.get("grouped_name") or data.get("name")
self.link = data.get("link")
self.ncn = data.get("ncn")
self.canonical_param = data.get("param")
Expand Down
Loading

0 comments on commit e042c32

Please sign in to comment.