Skip to content

Commit

Permalink
feat(search): Adds missing fields in judge search export
Browse files Browse the repository at this point in the history
  • Loading branch information
ERosendo committed Mar 11, 2025
1 parent 945a538 commit b6e5350
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion cl/search/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,12 +905,14 @@ def get_csv_headers(cls) -> list[str]:
"id",
"name",
"name_reverse",
"court",
"absolute_url",
"gender",
"religion",
"alias",
"races",
"political_affiliation",
"selection_method",
"fjc_id",
"dob",
"dob_city",
Expand All @@ -921,12 +923,24 @@ def get_csv_headers(cls) -> list[str]:
"date_granularity_dod",
"aba_rating",
"school",
"appointer",
"supervisor",
"predecessor",
"date_created",
]

@classmethod
def get_csv_transformations(cls) -> dict[str, Callable[..., Any]]:
list_fields = ["races", "aba_rating", "alias"]
list_fields = [
"races",
"aba_rating",
"alias",
"selection_method",
"appointer",
"supervisor",
"predecessor",
"court",
]
hl_fields = (
list(PEOPLE_ES_HL_FIELDS.keys()) + PEOPLE_ES_HL_KEYWORD_FIELDS
)
Expand Down

0 comments on commit b6e5350

Please sign in to comment.