Abri amend_job omits the surveyor resource so amendments cannot clobber Abri-side reassignments 🟩

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-03 16:21:06 +00:00
parent b70afc8d9d
commit e363a1105a

View file

@ -49,15 +49,18 @@ class AbriClient:
return self._parse_job_logged(outcome)
def amend_job(self, request: AmendJobRequest) -> AmendJobResult:
parameters = [
("job_no", request.job_no),
("action", "amend"),
("appointment_date", request.appointment_date.strftime("%d/%m/%Y")),
("appointment_time", request.appointment_time),
]
if request.resource is not None:
parameters.append(("resource", request.resource))
outcome = self._exchange(
request_type="amendoptiappt",
parameters=[
("job_no", request.job_no),
("action", "amend"),
("appointment_date", request.appointment_date.strftime("%d/%m/%Y")),
("appointment_time", request.appointment_time),
("resource", request.resource or ""),
],
parameters=parameters,
)
if isinstance(outcome, AbriRequestRejected):