fix: ruff format

This commit is contained in:
TheNoxium
2025-07-30 14:04:59 +05:00
parent b82960faf3
commit 2030d54b2c
11 changed files with 19 additions and 16 deletions

View File

@@ -5,7 +5,7 @@ from api.endpoints.keyring import api_router as keyring_router
from api.endpoints.listevents import api_router as listevents_router
from api.endpoints.processschema import api_router as processschema_router
list_of_routes = [auth_router, profile_router, account_router, keyring_router, listevents_router,processschema_router]
list_of_routes = [auth_router, profile_router, account_router, keyring_router, listevents_router, processschema_router]
__all__ = [
"list_of_routes",

View File

@@ -98,7 +98,6 @@ async def update_account(
if user_update.password is not None:
await update_password_key(connection, user.id, user_update.password)
updated_values = user_update.model_dump(by_alias=True, exclude_none=True)
if not updated_values:

View File

@@ -17,7 +17,7 @@ from api.db.logic.processschema import (
get_process_schema_by_id,
update_process_schema_by_id,
get_process_schema_page_by_creator_id,
get_process_schema_page
get_process_schema_page,
)
from api.schemas.process.process_schema import ProcessSchema
@@ -42,6 +42,7 @@ api_router = APIRouter(
tags=["process schema"],
)
@api_router.get("", dependencies=[Depends(bearer_schema)], response_model=AllProcessSchemaResponse)
async def get_all_process_schema(
page: int = 1,
@@ -87,6 +88,7 @@ async def get_process_schema(
return processschema_validation
@api_router.post("", dependencies=[Depends(bearer_schema)], response_model=ProcessSchema)
async def create_processschema(
processschema: ProcessSchemaUpdate,
@@ -134,6 +136,7 @@ async def update_process_schema(
return processschema
@api_router.delete("/{processschema_id}", dependencies=[Depends(bearer_schema)], response_model=ProcessSchema)
async def delete_process_schema(
processschema_id: int,

View File

@@ -47,7 +47,6 @@ async def update_profile(
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Account not found")
if user_update.role is None and user_update.login is None:
updated_values = user_update.model_dump(by_alias=True, exclude_none=True)
if updated_values is None: