ref: небольшой рефакторинг

This commit is contained in:
Artem Tsyrulnikov
2025-12-04 16:38:27 +03:00
parent d117776e65
commit e90c6bfb75
6 changed files with 8 additions and 11 deletions

View File

@@ -18,7 +18,6 @@ async def get_views_history(
from_date: datetime.datetime | None = None,
to_date: datetime.datetime | None = None,
) -> dto.GetViewsHistoryOutput:
"""Получить историю просмотров для закупа."""
input_data = dto.GetViewsHistoryInput(
placement_id=placement_id,
user_id=current_user.user_id,
@@ -34,7 +33,6 @@ async def fetch_views(
placement_id: uuid.UUID,
current_user: Annotated[JWTPayload, Depends(dependencies.get_current_user)],
) -> dto.FetchViewsManuallyOutput:
"""Получить актуальные просмотры через Telegram API."""
input_data = dto.FetchViewsInputManually(
placement_id=placement_id,
user_id=current_user.user_id,
@@ -49,7 +47,6 @@ async def update_views_manually(
views_count: int,
current_user: Annotated[JWTPayload, Depends(dependencies.get_current_user)],
) -> dto.PlacementOutput:
"""Обновить просмотры вручную."""
input_data = dto.UpdateViewsManuallyInput(
placement_id=placement_id,
user_id=current_user.user_id,