Revised the empty condition in the __get_page_links method of the Pagination utility.

This commit is contained in:
依瑪貓 2023-02-04 11:36:18 +08:00
parent 3e68cfe690
commit 1a44f08b90

View File

@ -164,7 +164,7 @@ class Pagination(t.Generic[T]):
:return: The page links in the pagination navigation.
"""
if self.__total_pages < 2:
if not self.is_paged:
return []
uri: str | None
links: list[Link] = []