mirror of
https://github.com/PR0M3TH3AN/unredact.git
synced 2026-10-27 08:40:29 +00:00
feat: add PAGE_SIZE constant and solve results buffer
Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
1 parent
8d7e60950c
commit
c8d177f23f
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user