From 6b6b267005d0f89b4d62d01f815e662cb7076c7b Mon Sep 17 00:00:00 2001 From: Norbert <48217146+Noschvie@users.noreply.github.com> Date: Thu, 9 Nov 2023 17:23:41 +0100 Subject: [PATCH] Fix spelling --- app/routers/database.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/routers/database.py b/app/routers/database.py index 9744109..a772fcb 100644 --- a/app/routers/database.py +++ b/app/routers/database.py @@ -8,7 +8,7 @@ router = APIRouter(redirect_slashes=True) -@router.get("/size", description="Get DataBase Size") +@router.get("/size", description="Get Database Size") async def get_db_size(cur_user: API = Depends(get_current_user)): api : UptimeKumaApi = cur_user['api'] try: @@ -19,12 +19,12 @@ async def get_db_size(cur_user: API = Depends(get_current_user)): raise HTTPException(500, str(e)) -@router.post("/shrink", description="Shrink DataBase") +@router.post("/shrink", description="Shrink Database") async def shrink_db(cur_user: API = Depends(get_current_user)): api : UptimeKumaApi = cur_user['api'] try: resp = api.shrink_database() - return {"message": "DB Shrinked" , "details": resp} + return {"message": "Database shrinked" , "details": resp} except Exception as e: logging.fatal(e) - raise HTTPException(500, str(e)) \ No newline at end of file + raise HTTPException(500, str(e))