refactor: improve code readability by formatting arguments across multiple files
Test / test (push) Successful in 15s

This commit is contained in:
Artem Kashaev
2025-12-01 16:25:30 +05:00
parent dc0046c730
commit 1dd7c2f2b8
22 changed files with 161 additions and 49 deletions
+4 -2
View File
@@ -68,7 +68,8 @@ async def list_deals(
stage_value = DealStage(stage) if stage else None
except ValueError as exc:
raise HTTPException(
status_code=status.HTTP_400_BAD_REQUEST, detail="Invalid deal filter",
status_code=status.HTTP_400_BAD_REQUEST,
detail="Invalid deal filter",
) from exc
params = DealQueryParams(
@@ -100,7 +101,8 @@ async def create_deal(
"""Create a new deal within the current organization."""
data = payload.to_domain(
organization_id=context.organization_id, fallback_owner=context.user_id,
organization_id=context.organization_id,
fallback_owner=context.user_id,
)
try:
deal = await service.create_deal(data, context=context)