Fix anchors router to use get_anchors_paginated

Anchors are global, not user-specific. Added paginated db function.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
giles
2026-01-11 13:08:37 +00:00
parent 65169f49f9
commit c3d131644a
2 changed files with 23 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ async def list_anchors(
from fastapi.responses import RedirectResponse
return RedirectResponse(url="/login", status_code=302)
anchors = await db.get_user_anchors(username, offset=offset, limit=limit)
anchors = await db.get_anchors_paginated(offset=offset, limit=limit)
has_more = len(anchors) >= limit
if wants_json(request):