fix(532-1): E01 Source 측점 행 sequence_num 없는 복사본 읽기 — row.get 으로 차례 = chainage 정렬 · test_532_3_e02_ground 2 실패 해소(요구 351)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -71,7 +71,7 @@ def db_snapshot(root: Path) -> dict[str, Any]:
|
||||
|
||||
def _cross_rows(root: Path) -> list[dict[str, Any]]:
|
||||
rows = [row for row in db_snapshot(root)["cross_sections"] if row["chainage_m"] is not None]
|
||||
return sorted(rows, key=lambda row: (float(row["chainage_m"]), row["sequence_num"] or 0))
|
||||
return sorted(rows, key=lambda row: (float(row["chainage_m"]), row.get("sequence_num") or 0))
|
||||
|
||||
|
||||
def _row_data(row: dict[str, Any]) -> dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user