This commit is contained in:
Jörn-Michael Miehe 2022-03-18 18:24:09 +00:00
parent 746ca51bdd
commit 4a6f8e43ef
4 changed files with 6 additions and 7 deletions

View file

@ -1,12 +1,11 @@
from enum import Enum
import json
from enum import Enum
from jose.constants import ALGORITHMS
from passlib.context import CryptContext
from pydantic import BaseModel, Field
from sqlalchemy.engine import Engine
from sqlalchemy import create_engine
from sqlalchemy.engine import Engine
CONFIG_FILE = "tmp/config.json"

View file

@ -1,6 +1,7 @@
from typing import Generator
from sqlalchemy.engine import Engine
from sqlalchemy.orm import sessionmaker, Session
from sqlalchemy.orm import Session, sessionmaker
from .models import ORMBaseModel

View file

@ -4,8 +4,8 @@ import uvicorn
from fastapi import FastAPI
from . import config
from .routers import admin
from .db import connection
from .routers import admin
PRODUCTION_MODE = False

View file

@ -4,8 +4,7 @@ from fastapi import APIRouter, Depends, HTTPException, status
from sqlalchemy.orm import Session
from .. import config
from ..db import crud, schemas, connection
from ..db import connection, crud, schemas
router = APIRouter(prefix="/admin")