imports
This commit is contained in:
parent
746ca51bdd
commit
4a6f8e43ef
4 changed files with 6 additions and 7 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue