Enhance authentication input fields with autocomplete attributes and refactor API registration and login methods for improved response handling

This commit is contained in:
Artem Kashaev
2026-05-28 11:33:13 +05:00
parent e48b1fc0e9
commit 2f5fd2f3d4
4 changed files with 14 additions and 9 deletions
+4 -1
View File
@@ -180,11 +180,14 @@ async def progression(
kind: Annotated[str, Query(pattern="^(exercise|equipment)$")] = "exercise",
entity_id: str | None = None,
) -> Any:
p: dict[str, Any] = {"kind": kind}
if entity_id is not None:
p["entity_id"] = entity_id
return await logic_request(
"GET",
"/internal/analytics/progression",
user,
params={"kind": kind, "entity_id": entity_id},
params=p,
)