aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar TizzySaurus <[email protected]>2023-03-22 09:50:06 +0000
committerGravatar TizzySaurus <[email protected]>2023-03-22 09:50:06 +0000
commit84a9b57738398d6294db5c4d2495e53f65c08b2a (patch)
treef7db8994e2f6e9c6329b2c24e6492746ffedf738 /bot
parentFix linting (diff)
max -> min
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/holidays/halloween/scarymovie.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/holidays/halloween/scarymovie.py b/bot/exts/holidays/halloween/scarymovie.py
index 2e3a726f..94d4d4d7 100644
--- a/bot/exts/holidays/halloween/scarymovie.py
+++ b/bot/exts/holidays/halloween/scarymovie.py
@@ -51,7 +51,7 @@ class ScaryMovie(commands.Cog):
total_pages = data.get("total_pages")
# Get movie details from one random result on a random page
- params["page"] = max(random.randint(1, total_pages), 500)
+ params["page"] = min(random.randint(1, total_pages), 500)
async with self.bot.http_session.get(url=url, params=params, headers=headers) as response:
data = await response.json()
if (results := data.get("results")) is None: