diff options
| author | 2022-09-18 18:11:45 +0100 | |
|---|---|---|
| committer | 2022-09-18 18:11:45 +0100 | |
| commit | 9a867416c10d1d7543574bcb4642f645c6f98b29 (patch) | |
| tree | 55cc3afb02a85cbd9f7636362d07e6bbea9ed565 | |
| parent | remove useless initial sorting of keywords (diff) | |
enumerate full_rules with a start index of 1
| -rw-r--r-- | bot/exts/info/information.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index b453a87cb..e09083f90 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -568,9 +568,9 @@ class Information(Cog): final_rule_numbers.extend(rule_numbers) for keyword in keywords: - for rule_number, rule in enumerate(full_rules): + for rule_number, rule in enumerate(full_rules, start=1): if keyword in rule[1]: - final_rule_numbers.append(rule_number + 1) + final_rule_numbers.append(rule_number) break final_rules = [] |