summaryrefslogtreecommitdiff
path: root/__main__.py
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-09-02 00:30:16 +0200
committerBotond Hende <nettingman@gmail.com>2024-09-02 00:30:16 +0200
commit5f67692c2424ce54c8dd754ef87d8d753759700e (patch)
treeeec7f1b3c626f2bbc4a971214e0d75eab70b6b84 /__main__.py
parent1638f40eccc4a1321ee1bf19e3756157b6c965e1 (diff)
renamed/refactored code
Diffstat (limited to '__main__.py')
-rw-r--r--__main__.py6
1 files changed, 3 insertions, 3 deletions
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)