Skip to content

Commit c850b7f

Browse files
sfbaytidesclaude
andcommitted
Fix court case detail API error - remove nonexistent dissent_author field
The API router and schema referenced a dissent_author field that doesn't exist in the database model or table. This caused 500 errors when viewing case detail pages (e.g., /cases/1). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a56fb66 commit c850b7f

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

src/civitas/api/routers/cases.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ async def get_case(
111111
docket_number=case.docket_number,
112112
holding=case.holding,
113113
majority_author=case.majority_author,
114-
dissent_author=case.dissent_author,
115114
source_url=case.source_url,
116115
linked_objectives=[objective_to_base(obj) for obj in linked_objectives],
117116
**insight,

src/civitas/api/schemas.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ class CourtCaseDetail(CourtCaseBase):
239239
docket_number: str | None = None
240240
holding: str | None = None
241241
majority_author: str | None = None
242-
dissent_author: str | None = None
243242
source_url: str | None = None
244243
linked_objectives: list[ObjectiveBase] = []
245244
plain_summary: str | None = None

0 commit comments

Comments
 (0)