Skip to content

Commit

Permalink
Fix loop over dict in raid_name()
Browse files Browse the repository at this point in the history
The original approch shouldn't actually break anything, but pylint
was unhappy about it for a reason.
  • Loading branch information
jikortus committed Nov 1, 2024
1 parent a4976f8 commit 3f358fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def raid_name(raid_level=None, drop_span=True):
}
if drop_span:
exp = re.compile(r'(.*)<span foreground=\"grey\">(.*)</span>')
for level in LEVELS:
for level in LEVELS.keys():
LEVELS[level] = exp.sub(r"\1\2", LEVELS[level])
if raid_level is not None:
return LEVELS[raid_level]
Expand Down

0 comments on commit 3f358fc

Please sign in to comment.