aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar brad90four <[email protected]>2021-08-30 12:37:26 -0400
committerGravatar GitHub <[email protected]>2021-08-30 12:37:26 -0400
commit990dcf80b0813a85865450c9ad038d3ed620ec08 (patch)
tree70385b01d91a14e12f46b499de0d2fe189a4e2cd
parentOnly send articles to user (diff)
Correct article length check with future proofing
Co-authored-by: wookie184 <[email protected]>
-rw-r--r--bot/exts/evergreen/realpython.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/realpython.py b/bot/exts/evergreen/realpython.py
index 6d148ad6..6ef750a9 100644
--- a/bot/exts/evergreen/realpython.py
+++ b/bot/exts/evergreen/realpython.py
@@ -56,7 +56,7 @@ class RealPython(commands.Cog):
article_embed = Embed(
title="Search results - Real Python",
url=SEARCH_URL.format(user_search=quote_plus(user_search)),
- description=f"Here are the top {max(5, len(articles))} results:",
+ description=f"Here are the top {len(articles)} results:",
color=Colours.orange,
)