feat(rectification): expose candidate result reports
This commit is contained in:
@@ -156,8 +156,8 @@ def normalize_rectification_request(body: Any, *, today: date | None = None) ->
|
||||
if not isinstance(end_time, str) or not _CLOCK.fullmatch(end_time):
|
||||
raise ValueError("end_time must be HH:MM")
|
||||
events = body.get("events")
|
||||
if not isinstance(events, list) or not 1 <= len(events) <= 100:
|
||||
raise ValueError("events must contain between 1 and 100 items")
|
||||
if not isinstance(events, list) or not 0 <= len(events) <= 100:
|
||||
raise ValueError("events must contain between 0 and 100 items")
|
||||
upper_date = today or date.today()
|
||||
cleaned_events: list[LifeEvent] = []
|
||||
for index, raw_event in enumerate(events):
|
||||
|
||||
Reference in New Issue
Block a user