Restauration : fichiers Python depuis commit 4080a308ea

This commit is contained in:
Mouigni
2026-08-11 23:33:24 +02:00
parent 8df04dd679
commit 1f7d06c26d
14 changed files with 1366 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker, declarative_base
import os
DB_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), "regwatch.db")
DATABASE_URL = f"sqlite:///{DB_PATH}"
engine = create_engine(
DATABASE_URL,
connect_args={"check_same_thread": False}
)
SessionLocal = sessionmaker(
autocommit=False,
autoflush=False,
bind=engine
)
Base = declarative_base()