diff --git a/cogs/commands/get.py b/cogs/commands/get.py index 184cb5c..9b52241 100644 --- a/cogs/commands/get.py +++ b/cogs/commands/get.py @@ -41,7 +41,7 @@ class GetCog(commands.Cog, name="Get command."): category_id (str): String representation of Category id to get information from. Is SlashOption. """ stmt = ( - select(Category).where(col(CategoryGroup.id) == int(group_id)).where(col(Category.id) == int(category_id)) + select(Category).where(col(Category.group_id) == int(group_id)).where(col(Category.id) == int(category_id)) ) with Session(engine) as session: @@ -73,7 +73,7 @@ class GetCog(commands.Cog, name="Get command."): category_id (str): String representation of Category id to get information from. Is SlashOption. """ stmt = ( - select(Category).where(col(CategoryGroup.id) == int(group_id)).where(col(Category.id) == int(category_id)) + select(Category).where(col(Category.group_id) == int(group_id)).where(col(Category.id) == int(category_id)) ) with Session(engine) as session: @@ -103,7 +103,7 @@ class GetCog(commands.Cog, name="Get command."): category_id (str): String representation of Category id to get information from. Is SlashOption. """ stmt = ( - select(Category).where(col(CategoryGroup.id) == int(group_id)).where(col(Category.id) == int(category_id)) + select(Category).where(col(Category.group_id) == int(group_id)).where(col(Category.id) == int(category_id)) ) with Session(engine) as session: diff --git a/cogs/commands/set.py b/cogs/commands/set.py index 9aa84a1..0808d37 100644 --- a/cogs/commands/set.py +++ b/cogs/commands/set.py @@ -46,7 +46,7 @@ class SetCog(commands.Cog, name="Set command."): size (int): Size to set. Is SlashOption. """ stmt = ( - select(Category).where(col(CategoryGroup.id) == int(group_id)).where(col(Category.id) == int(category_id)) + select(Category).where(col(Category.group_id) == int(group_id)).where(col(Category.id) == int(category_id)) ) with Session(engine) as session: @@ -94,7 +94,7 @@ class SetCog(commands.Cog, name="Set command."): ascending (bool): Boolean to set. Determines whether scores are sorted ascending or not. Is SlashOption. """ stmt = ( - select(Category).where(col(CategoryGroup.id) == int(group_id)).where(col(Category.id) == int(category_id)) + select(Category).where(col(Category.group_id) == int(group_id)).where(col(Category.id) == int(category_id)) ) with Session(engine) as session: @@ -144,7 +144,7 @@ class SetCog(commands.Cog, name="Set command."): validated (bool): Boolean to set. Determines whether scores are validated or not. Is SlashOption. """ stmt = ( - select(Category).where(col(CategoryGroup.id) == int(group_id)).where(col(Category.id) == int(category_id)) + select(Category).where(col(Category.group_id) == int(group_id)).where(col(Category.id) == int(category_id)) ) with Session(engine) as session: @@ -191,7 +191,7 @@ class SetCog(commands.Cog, name="Set command."): name (str): The name to update the category's name to. Is SlashOption. """ stmt = ( - select(Category).where(col(CategoryGroup.id) == int(group_id)).where(col(Category.id) == int(category_id)) + select(Category).where(col(Category.group_id) == int(group_id)).where(col(Category.id) == int(category_id)) ) with Session(engine) as session: