From 5f67692c2424ce54c8dd754ef87d8d753759700e Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Mon, 2 Sep 2024 00:30:16 +0200 Subject: renamed/refactored code --- __main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '__main__.py') diff --git a/__main__.py b/__main__.py index 662d7f3..55fa740 100644 --- a/__main__.py +++ b/__main__.py @@ -2,7 +2,7 @@ from contextlib import asynccontextmanager from fastapi import FastAPI -from .apirouters import agents, tasks, customize_ship +from .apirouters import auth, tasks, customize_ship from .modules.database import cursor, conn @@ -13,12 +13,12 @@ async def lifespan(application: FastAPI): cursor.execute( "CREATE TABLE IF NOT EXISTS ships(primary_key INTEGER PRIMARY KEY, symbol TEXT NOT NULL UNIQUE, task TEXT NOT NULL, params TEXT, name TEXT)") conn.commit() - agents.load_agents_from_database() + auth.load_agents_from_database() yield app = FastAPI(lifespan=lifespan) -app.include_router(agents.router) +app.include_router(auth.router) app.include_router(tasks.router) app.include_router(customize_ship.router) -- cgit v1.2.3-70-g09d2