diff options
| author | 2022-09-18 21:56:46 +0100 | |
|---|---|---|
| committer | 2022-09-18 21:56:46 +0100 | |
| commit | f95e4164406c76d2d0290cd05a2811ca875b3e23 (patch) | |
| tree | 699e1cb24f1141b69275aa484c522b44980f7183 | |
| parent | replace the keywords set with a dict that maps each keyword to its rule number (diff) | |
remove redundant use of list transformation when sorting final rule numbers
| -rw-r--r-- | bot/exts/info/information.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index 315d93f1d..7034ca596 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -573,7 +573,7 @@ class Information(Cog): final_rules = [] final_rule_numbers = set(final_rule_numbers) - final_rule_numbers = sorted(list(final_rule_numbers)) + final_rule_numbers = sorted(final_rule_numbers) for rule_number in final_rule_numbers: self.bot.stats.incr(f"rule_uses.{rule_number}") |