From c26cecc89c2f1a8dc572aec2f57b876d523ed72e Mon Sep 17 00:00:00 2001 From: "Nyeki.py" <84998222+Nekidev@users.noreply.github.com> Date: Fri, 18 Oct 2024 14:21:47 -0300 Subject: [PATCH] refactor(bot): :coffin: Remove dead code. --- payphone/db/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/payphone/db/utils.py b/payphone/db/utils.py index 395ff0a..7fca9f5 100644 --- a/payphone/db/utils.py +++ b/payphone/db/utils.py @@ -5,12 +5,11 @@ import discord from payphone.db import models -async def get_channel(channel: discord.TextChannel, for_update: bool = False) -> models.Channel: +async def get_channel(channel: discord.TextChannel) -> models.Channel: """Returns a channel from the database, creating or updating it if it already exists. Args: channel (discord.TextChannel): The channel to fetch. - for_update (bool, optional): Whether the select should be FOR UPDATE or not. Returns: models.Channel: The channel row.