wow, thats pretty ruff

ran 'ruff check --fix app'
This commit is contained in:
2026-07-29 01:41:26 +02:00
parent ede3e9a516
commit 1ca046ded9
14 changed files with 120 additions and 92 deletions

View File

@@ -1,9 +1,9 @@
import logging
logger = logging.getLogger(__name__)
from os import getenv, path
from sqlmodel import create_engine, SQLModel, Session
from app.model.models import Base
from sqlmodel import Session, SQLModel, create_engine
SQLALCHEMY_DATABASE_URL = getenv("SQLALCHEMY_DATABASE_URL", "sqlite:///./gatekeeper.db")
@@ -13,6 +13,7 @@ def create_db_and_tables():
if not path.exists(SQLALCHEMY_DATABASE_URL):
SQLModel.metadata.create_all(engine)
from alembic.config import Config
from alembic import command
alembic_cfg = Config("./alembic.ini")
command.stamp(alembic_cfg, "head")