Typo on col usage.
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ def autofill_groups(guild_id: int, group_begin: str) -> "dict[str, str]":
|
|||||||
"""
|
"""
|
||||||
with Session(engine) as session:
|
with Session(engine) as session:
|
||||||
# Select all groups in guild.
|
# Select all groups in guild.
|
||||||
stmt = select(CategoryGroup).wherecol((CategoryGroup.guild_id) == guild_id)
|
stmt = select(CategoryGroup).where(col(CategoryGroup.guild_id) == guild_id)
|
||||||
|
|
||||||
# dict has to have key values of same type for discord.
|
# dict has to have key values of same type for discord.
|
||||||
group_dict: dict[str, str] = {group.name: str(group.id) for group in session.scalars(stmt)}
|
group_dict: dict[str, str] = {group.name: str(group.id) for group in session.scalars(stmt)}
|
||||||
|
|||||||
Reference in New Issue
Block a user