Enhance authentication input fields with autocomplete attributes and refactor API registration and login methods for improved response handling
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user