From 7f509de7b63530da59cb19a1600a000496d7ce89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Fri, 17 Feb 2023 14:11:40 +0100 Subject: [PATCH] fixup circular import --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 0899a8e..1352573 100644 --- a/__init__.py +++ b/__init__.py @@ -10,6 +10,8 @@ db = Database("ext_market") +scheduled_tasks: List[asyncio.Task] = [] + market_ext: APIRouter = APIRouter(prefix="/market", tags=["market"]) market_static_files = [ @@ -38,8 +40,6 @@ def market_renderer(): from .views import * # noqa: F401,F403 from .views_api import * # noqa: F401,F403 -scheduled_tasks: List[asyncio.Task] = [] - def market_start(): loop = asyncio.get_event_loop() task = loop.create_task(catch_everything_and_restart(wait_for_paid_invoices))