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
+2 -2
View File
@@ -351,8 +351,8 @@ def recalculate_workout_calories(db: Session, workout_id: uuid.UUID) -> None:
def get_progression(
db: Db,
user_id: CurrentUserId,
kind: str = Query(pattern="^(exercise|equipment)$"),
entity_id: uuid.UUID | None = None,
kind: Annotated[str, Query(pattern="^(exercise|equipment)$")],
entity_id: Annotated[uuid.UUID | None, Query()] = None,
) -> ProgressionRead:
statement = (
select(Workout.started_at, WorkoutSet.weight, WorkoutSet.reps)