Added the missing parameter in the __uri_set method of the Pagination utility.

This commit is contained in:
依瑪貓 2023-02-04 11:24:10 +08:00
parent 1326d9538c
commit c286aa8b8b

View File

@ -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)