chore: minor fixes and formatting

This commit is contained in:
2026-08-12 19:52:30 +07:00
parent a011b2724b
commit ca276cdd61
48 changed files with 394 additions and 354 deletions

View File

@@ -1,4 +1,5 @@
import asyncio
import os
from logging.config import fileConfig
from sqlalchemy import pool
@@ -6,14 +7,17 @@ from sqlalchemy.engine import Connection
from sqlalchemy.ext.asyncio import async_engine_from_config
from alembic import context
from db.base import Base
from db.models import * # noqa: F403
from db.models import *
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
postgres_url = os.getenv("POSTGRES_URL")
if postgres_url:
config.set_main_option("sqlalchemy.url", postgres_url)
# Interpret the config file for Python logging.
# This line sets up loggers basically.
if config.config_file_name is not None: