From 13ee0683582498cedc66d2e3a14cb32510392135 Mon Sep 17 00:00:00 2001 From: Parker Date: Tue, 21 Jan 2025 21:06:33 -0600 Subject: Fix database creation --- code/cogs/newaccount.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'code/cogs') diff --git a/code/cogs/newaccount.py b/code/cogs/newaccount.py index f3f5ac8..fd3f698 100644 --- a/code/cogs/newaccount.py +++ b/code/cogs/newaccount.py @@ -1,10 +1,9 @@ import discord from discord import app_commands -from discord.ext import commands, tasks +from discord.ext import commands from utils.database import Session from utils.jellyfin_create import create_jellyfin_account -from utils.jellyfin_delete import delete_accounts from utils.models import JellyfinAccounts from utils.config import ( JELLYFIN_PUBLIC_URL, @@ -17,9 +16,6 @@ class NewAccount(commands.Cog): def __init__(self, bot): self.bot = bot - def cog_load(self): - self.delete_accounts_loop.start() - @app_commands.command() @app_commands.check(lambda inter: JELLYFIN_ENABLED) async def newaccount(self, interaction: discord.Interaction) -> None: @@ -91,10 +87,6 @@ class NewAccount(commands.Cog): embed=embed, ephemeral=True ) - @tasks.loop(minutes=1) - async def delete_accounts_loop(self): - delete_accounts() - async def setup(bot): await bot.add_cog(NewAccount(bot)) -- cgit v1.2.3-70-g09d2