From c286aa8b8bd53602db804aa50c4c689e6715590e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 4 Feb 2023 11:24:10 +0800 Subject: [PATCH] Added the missing parameter in the __uri_set method of the Pagination utility. --- src/accounting/utils/pagination.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/accounting/utils/pagination.py b/src/accounting/utils/pagination.py index 09cddcd..687653d 100644 --- a/src/accounting/utils/pagination.py +++ b/src/accounting/utils/pagination.py @@ -278,6 +278,8 @@ class Pagination(t.Generic[T]): params[i] = (name, value) is_found = True i = i + 1 + if not is_found and value is not None: + params.append((name, value)) parts: list[str] = list(uri_p) parts[4] = urlencode(params)