feat: database with tortoise orm
Python Lint CI / ty (push) Successful in 1m22s
Python Lint CI / ruff (push) Successful in 1m22s
Python Lint CI / ruff-format-check (push) Successful in 1m22s

This commit is contained in:
2026-07-01 11:43:10 +02:00
parent deba8a73f9
commit c93a74b0f4
14 changed files with 248 additions and 1 deletions
+2
View File
@@ -2,6 +2,7 @@ import logging
import sys
from app import PKG_NAME, PKG_VERSION
from app.database import Database
from app.logs import setup_logs
from app.params import parse_parameters
from app.server import Server
@@ -11,5 +12,6 @@ def main() -> int:
params = parse_parameters(sys.argv[1:])
setup_logs(params)
logging.getLogger().info("%s %s", PKG_NAME, PKG_VERSION)
Database(params).init()
Server(params).register_routes().start()
return 0