Revised the empty condition in the __get_page_links method of the Pagination utility.
This commit is contained in:
parent
3e68cfe690
commit
1a44f08b90
@ -164,7 +164,7 @@ class Pagination(t.Generic[T]):
|
|||||||
|
|
||||||
:return: The page links in the pagination navigation.
|
:return: The page links in the pagination navigation.
|
||||||
"""
|
"""
|
||||||
if self.__total_pages < 2:
|
if not self.is_paged:
|
||||||
return []
|
return []
|
||||||
uri: str | None
|
uri: str | None
|
||||||
links: list[Link] = []
|
links: list[Link] = []
|
||||||
|
Loading…
Reference in New Issue
Block a user