From 2cf10d3405e6ea230fa8b02e82fc50982d54b5c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Thu, 29 Aug 2024 08:17:40 +0200 Subject: [PATCH] Remove redundant database init db already initialized through the lifespan in goosebit/__init.py__ --- goosebit/db/db.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/goosebit/db/db.py b/goosebit/db/db.py index 1858c52a..f5f0cc9b 100644 --- a/goosebit/db/db.py +++ b/goosebit/db/db.py @@ -1,4 +1,4 @@ -from tortoise import Tortoise, run_async +from tortoise import Tortoise from goosebit.db.config import TORTOISE_CONF @@ -9,7 +9,3 @@ async def init(): async def close(): await Tortoise.close_connections() - - -if __name__ == "__main__": - run_async(init())