fix(moderation): use ceil instead of round for moderation pagesize

This commit is contained in:
Seaswimmer 2023-12-21 17:47:13 -05:00
parent 1b096f9023
commit 4e40bb6a32
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -9,6 +9,7 @@ import json
import os
import time
from datetime import datetime, timedelta, timezone
from math import ceil
import discord
import humanize
@ -648,7 +649,7 @@ class Moderation(commands.Cog):
result_dict_list.append(case_dict)
case_quantity = len(result_dict_list)
page_quantity = round(case_quantity / pagesize)
page_quantity = ceil(case_quantity / pagesize)
start_index = (page - 1) * pagesize
end_index = page * pagesize