From 4e40bb6a32c1cb76c00eb9798a82c9cf223fbbdf Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 21 Dec 2023 17:47:13 -0500 Subject: [PATCH] fix(moderation): use ceil instead of round for moderation pagesize --- moderation/moderation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 79c3113..31da9b1 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -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