Skip to content

Commit 56107cf

Browse files
committed
games.py: nit comment update
1 parent 3fb2536 commit 56107cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/games.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def get_name(self, deku_id: str):
175175
def search(self, query: str, multiResult=False) -> Optional[dict]:
176176
gameList = self.gameNamesCache
177177

178-
# If the game we are comparing is really short (<=3 chars), do not allow a match if our search is longer.
178+
# If our query isn't short (>5 chars), then filter out short game titles.
179179
# This prevents things like 'a' being the best match for 'realMyst' and not 'realMyst: Masterpiece Edition'
180180
if len(query) > 5:
181181
gameList = [g for g in gameList if len(g['name']) > 5]

0 commit comments

Comments
 (0)