(sections: list[dict[str, Any]], page_number: int)
| 179 | |
| 180 | |
| 181 | def section_ids_for_page(sections: list[dict[str, Any]], page_number: int) -> list[str]: |
| 182 | ids = [ |
| 183 | str(section.get("section_id", "")) |
| 184 | for section in sections |
| 185 | if int(section.get("page_start", 0) or 0) |
| 186 | <= page_number |
| 187 | <= int(section.get("page_end", 0) or 0) |
| 188 | ] |
| 189 | return [sid for sid in ids if sid] |
| 190 | |
| 191 | |
| 192 | def build_pages( |
no outgoing calls
no test coverage detected