a2a-source-edit: write agent.py
This commit is contained in:
5
agent.py
5
agent.py
@@ -333,9 +333,8 @@ def _extract_deadlines(text: str) -> list[ExtractedDeadline]:
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
seen.add(("notice", notice_date))
|
seen.add(("notice", notice_date))
|
||||||
deadlines.sort(key=lambda item: (item.deadline_date, item.kind != "notice"))
|
# Public contract wants renewal before the derived notice date for a clause.
|
||||||
# Public contract wants renewal before derived notice for the same clause.
|
deadlines.sort(key=_deadline_sort_key)
|
||||||
deadlines.sort(key=lambda item: 0 if item.kind == "renewal" else 1)
|
|
||||||
return deadlines
|
return deadlines
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user