From 3119585850d01957d074862d25d01b78eb7fc438 Mon Sep 17 00:00:00 2001 From: Amrou Bellalouna Date: Sun, 18 Sep 2022 16:11:10 +0100 Subject: rename index to rule_number --- bot/exts/info/information.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index cd1f0f957..52cc79aa0 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -558,7 +558,9 @@ class Information(Cog): # Remove duplicate keywords and preserve the order of initial keywords keywords = list(dict.fromkeys(keywords)) - invalid = ", ".join(str(index) for index in rule_numbers if index < 1 or index > len(full_rules)) + invalid = ", ".join( + str(rule_number) for rule_number in rule_numbers + if rule_number < 1 or rule_number > len(full_rules)) if invalid: await ctx.send(shorten(":x: Invalid rule indices: " + invalid, 75, placeholder=" ...")) -- cgit v1.2.3