Skip to content

Commit eb50dca

Browse files
committed
Fix some bugs
1 parent 14a93aa commit eb50dca

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

techsupport_bot/commands/voting.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ async def vote_channel_autocomplete(
198198

199199
# Optional name filter (autocomplete)
200200
if current.lower() not in channel.name.lower():
201-
return False
201+
continue
202202

203203
if not self.user_can_use_vote_channel(
204204
member=member,
@@ -215,10 +215,7 @@ async def vote_channel_autocomplete(
215215
)
216216
)
217217

218-
if len(choices) >= 25:
219-
break
220-
221-
return choices
218+
return choices[:25]
222219

223220
def user_can_use_vote_channel(
224221
self: Self,

0 commit comments

Comments
 (0)