Skip to content

Commit

Permalink
Ensure devops rules key cache uses int based keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Feb 4, 2024
1 parent 25b2e53 commit 035a82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arthur/exts/fun/devops_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def cog_load(self) -> None:
self.rules = {}
for line in parsed_content:
number, rule = line.split(".", maxsplit=1)
self.rules[number] = rule.strip()
self.rules[int(number)] = rule.strip()

@group(name="rules", aliases=("rule",))
async def rules_group(self, ctx: Context, rules: Greedy[int]) -> None:
Expand Down

0 comments on commit 035a82b

Please sign in to comment.