chore(): minor fixes around codebase

This commit is contained in:
ITQ
2026-02-24 10:35:25 +03:00
parent 16b48fee40
commit 50941c1321
12 changed files with 62 additions and 33 deletions
+2 -4
View File
@@ -5,7 +5,6 @@ from django.http import Http404, HttpRequest
from ninja import Router
from prometheus_client import Counter
from api.v1.auth.endpoints import jwt_bearer
from api.v1.events.schemas import (
EventErrorOut,
EventTypeCreateIn,
@@ -21,6 +20,7 @@ from apps.events.services import (
event_type_update,
process_events_batch,
)
from apps.users.auth.bearer import jwt_bearer
EVENTS_INGESTED = Counter(
"lotty_events_ingested_total",
@@ -62,9 +62,7 @@ def list_event_types(
is_active: bool | None = None, # noqa: FBT001
) -> tuple[int, list[EventTypeOut]]:
qs = event_type_list(is_active=is_active)
return HTTPStatus.OK, [
EventTypeOut.model_validate(metric) for metric in qs
]
return HTTPStatus.OK, [EventTypeOut.model_validate(et) for et in qs]
@router.get(