Skip to content

Commit 5426d04

Browse files
committed
Merge branch 'dekudeals' of https://github.com/rNintendoSwitch/MechaBowser into dekudeals
2 parents 4f0e73d + 8cd07f6 commit 5426d04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/games.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ def search(self, query: str) -> Optional[dict]:
143143
rem_punc = re.compile('[^0-9a-zA-Z ]+')
144144

145145
# Remove punctuation and casing for name and query
146-
scores = [method(rem_punc.sub('', game['name'].lower()), rem_punc.sub('', query.lower())) for method in methods]
146+
scores = [
147+
method(rem_punc.sub('', game['name'].lower()), rem_punc.sub('', query.lower())) for method in methods
148+
]
147149
score = sum(scores) / len(methods)
148150

149151
if not match['score'] or (score > match['score']):
@@ -170,7 +172,7 @@ async def get_image(self, deku_id: str, as_url: bool = False) -> Union[str, None
170172
resp.raise_for_status()
171173
data = await resp.read()
172174
return io.BytesIO(data)
173-
175+
174176
@app_commands.guilds(discord.Object(id=config.nintendoswitch))
175177
class GamesCommand(app_commands.Group):
176178
pass

0 commit comments

Comments
 (0)