Skip to content

Commit 5b7c988

Browse files
committed
fix: club autocomplete search
1 parent 09171cd commit 5b7c988

4 files changed

Lines changed: 372 additions & 364 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = [
8+
"aiohttp>=3.12.14",
89
"discord-py[speed]>=2.5.2",
910
"pydantic-settings>=2.9.1",
1011
"pydantic>=2.11.5",

src/commands/club.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async def autocomplete_club(
3636
) -> list[Choice]:
3737
"""Autocompletion for clubs."""
3838
return [
39-
Choice(name=club.name, value=club.id)
39+
Choice(name=club.name, value=str(club.id))
4040
for club in await self.club_service.search_club(current)
4141
]
4242

src/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class Settings(BaseSettings):
4242
env_nested_delimiter="__",
4343
)
4444

45-
foo: str
4645
bot: BotConfig
4746
guild: GuildConfig
4847
sith_api: ApiConfig

0 commit comments

Comments
 (0)