feat: admin dashboard

This commit is contained in:
3252a8
2026-05-09 22:32:44 +03:00
parent 0a9d929181
commit 6f9a87cf98
13 changed files with 6893 additions and 11 deletions
+8
View File
@@ -70,6 +70,14 @@ async def init_db(settings: Settings, session_factory: sessionmaker):
"PostgreSQL database initialized/checked successfully using SQLAlchemy."
)
try:
from bot.services.settings_override_service import load_overrides_from_db
await load_overrides_from_db(settings, session_factory)
except Exception as e_overrides:
logging.warning(
f"Failed to load setting overrides on startup: {e_overrides}"
)
async with session_factory() as session:
from .dal.panel_sync_dal import get_panel_sync_status, update_panel_sync_status
from sqlalchemy import text