fix: /packages search ordering links

This was not including other parameters that should be persisted for
users.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-02-17 15:48:58 -08:00
parent 040c9bc3e6
commit 361163098f
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 8 additions and 8 deletions

View file

@ -15,7 +15,7 @@ from aurweb.packages.search import PackageSearch
from aurweb.packages.util import get_pkg_or_base
from aurweb.pkgbase import actions as pkgbase_actions
from aurweb.pkgbase import util as pkgbaseutil
from aurweb.templates import make_context, render_template
from aurweb.templates import make_context, make_variable_context, render_template
logger = logging.get_logger(__name__)
router = APIRouter()
@ -125,7 +125,7 @@ async def packages_get(request: Request, context: Dict[str, Any],
@router.get("/packages")
async def packages(request: Request) -> Response:
context = make_context(request, "Packages")
context = await make_variable_context(request, "Packages")
return await packages_get(request, context)