mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-11 21:18:36 +03:00
chore: rename config.py => settings.py
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from celery import Celery
|
||||
|
||||
from app.shared.config import settings
|
||||
from app.shared.settings import settings
|
||||
|
||||
|
||||
def get_celery_binding() -> Celery:
|
||||
|
||||
@@ -3,7 +3,7 @@ from logging.config import fileConfig
|
||||
from alembic import context
|
||||
from sqlalchemy import engine_from_config, pool
|
||||
|
||||
from app.shared.config import settings
|
||||
from app.shared.settings import settings
|
||||
from app.shared.db.models import Base
|
||||
|
||||
# this is the Alembic Config object, which provides
|
||||
|
||||
@@ -3,7 +3,7 @@ from typing import Generator
|
||||
from sqlalchemy import create_engine
|
||||
from sqlalchemy.orm import Session, sessionmaker
|
||||
|
||||
from app.shared.config import settings
|
||||
from app.shared.settings import settings
|
||||
|
||||
engine = create_engine(settings.DATABASE_URI, connect_args={"check_same_thread": False})
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ from sqlalchemy.orm import Session
|
||||
from sqlalchemy_utils import create_database, database_exists, drop_database
|
||||
|
||||
import app.shared.db.models as models
|
||||
from app.shared.config import settings
|
||||
from app.shared.settings import settings
|
||||
from app.shared.db.base import SessionLocal, engine, get_session
|
||||
from app.web.main import app
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ from hmac import compare_digest
|
||||
from fastapi import Depends, HTTPException
|
||||
from fastapi.security import OAuth2PasswordBearer
|
||||
|
||||
from app.shared.config import settings
|
||||
from app.shared.settings import settings
|
||||
|
||||
|
||||
def authenticate_api_key(
|
||||
|
||||
Reference in New Issue
Block a user