From 65a353cb2d9a1bcc8e748caef75e57a96b8b66d7 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 14 Oct 2022 14:03:52 -0400 Subject: [PATCH] clean up some --- controllers/album.py | 4 +++- models/album.py | 2 +- schemas.py => models/schemas.py | 0 3 files changed, 4 insertions(+), 2 deletions(-) rename schemas.py => models/schemas.py (100%) diff --git a/controllers/album.py b/controllers/album.py index 464b2ec..b9d62a5 100644 --- a/controllers/album.py +++ b/controllers/album.py @@ -1,9 +1,11 @@ from fastapi import APIRouter, Depends, HTTPException from fastapi_utils.cbv import cbv from sqlalchemy.orm import Session + from models.album import get_all_albums, create_album, get_album_by_id, update_album, delete_album, AlbumException +from models.schemas import Album, CreateAndUpdateAlbum, PaginatedAlbum + from database import get_db -from schemas import Album, CreateAndUpdateAlbum, PaginatedAlbum router = APIRouter() diff --git a/models/album.py b/models/album.py index b663487..a13b886 100644 --- a/models/album.py +++ b/models/album.py @@ -3,7 +3,7 @@ from sqlalchemy.types import String, Integer, Float from database import Base from typing import List from sqlalchemy.orm import Session -from schemas import CreateAndUpdateAlbum +from models.schemas import CreateAndUpdateAlbum class Album(Base): diff --git a/schemas.py b/models/schemas.py similarity index 100% rename from schemas.py rename to models/schemas.py