mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
Fixed pagination page count calculation.
This commit is contained in:
parent
5a6b6c073b
commit
abda846ca3
2 changed files with 5 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import discord
|
||||
import math
|
||||
import humanize
|
||||
from typing import Tuple, List
|
||||
|
||||
|
|
@ -219,7 +220,7 @@ def help_footer_embed() -> discord.Embed:
|
|||
return embed
|
||||
|
||||
def member_list(system: System, all_members: List[Member], current_page: int = 0, page_size: int = 10):
|
||||
page_count = len(all_members) // page_size
|
||||
page_count = math.ceil(len(all_members) / page_size)
|
||||
|
||||
title = ""
|
||||
if len(all_members) > page_size:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue