From c70d074c3215414df7ea941ab75ef5c98c3f7496 Mon Sep 17 00:00:00 2001 From: tanshu Date: Thu, 21 Jan 2021 09:02:34 +0530 Subject: [PATCH] Fix: Always show the latest next hearing date in the compliance list --- luthor/luthor/routers/compliance_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luthor/luthor/routers/compliance_list.py b/luthor/luthor/routers/compliance_list.py index c125d36..c03b2ab 100644 --- a/luthor/luthor/routers/compliance_list.py +++ b/luthor/luthor/routers/compliance_list.py @@ -54,7 +54,7 @@ def case_info(item: Case) -> List[schemas.ComplianceList]: title=item.title, proceedings=h.proceedings if h.proceedings is not None else "", complianceDate=h.compliance_date, - nextHearingDate=h.next_hearing_date, + nextHearingDate=item.hearings[0].next_hearing_date, ) for h in item.hearings if h.compliance_date is not None and h.compliance_done is False