mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
♻️ refactor imports
This commit is contained in:
parent
976b730de5
commit
3d542b0055
9 changed files with 22 additions and 22 deletions
|
|
@ -3,8 +3,8 @@ from typing import List
|
|||
from uuid import uuid4
|
||||
from pydantic import BaseModel
|
||||
from src.services.users import User
|
||||
from ..services.database import create_config_collection, check_database, create_database, learnhouseDB, learnhouseDB
|
||||
from ..services.security import *
|
||||
from src.services.database import create_config_collection, check_database, create_database, learnhouseDB, learnhouseDB
|
||||
from src.services.security import *
|
||||
from fastapi import FastAPI, HTTPException, status, Request, Response, BackgroundTasks
|
||||
from datetime import datetime
|
||||
|
||||
|
|
@ -233,8 +233,6 @@ async def update_coursechapter(coursechapter_object: CourseChapter, coursechapt
|
|||
async def delete_coursechapter(coursechapter_id: str, current_user: User):
|
||||
await check_database()
|
||||
|
||||
|
||||
|
||||
coursechapters = learnhouseDB["coursechapters"]
|
||||
|
||||
coursechapter = coursechapters.find_one(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue