feat: add PAGE_SIZE constant and solve results buffer

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
Alex-GilbertandClaude Opus 4.6 committed 2026-02-23 14:33:46 -06:00
1 parent 8d7e60950c
commit c8d177f23f
1 file changed
+5
+5
View File
@@ -273,6 +273,11 @@ async def get_page_data(doc_id: str, page: int):
# Active solve tasks (for cancellation)
_active_solves: dict[str, bool] = {}
PAGE_SIZE = 200
# Buffered solve results for pagination (keyed by solve_id)
_solve_results: dict[str, list[dict]] = {}
class SolveRequest(BaseModel):
font_id: str