Skip to content

Commit

Permalink
chore(utils/common): add personal bests to exercise lot
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Feb 2, 2025
1 parent ca24ab8 commit ec34e7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/utils/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ pub static APPLICATION_JSON_HEADER: HeaderValue = HeaderValue::from_static("appl
pub const FRONTEND_OAUTH_ENDPOINT: &str = "/api/auth";
pub const PAGE_SIZE: i32 = 20;
pub const EXERCISE_LOT_MAPPINGS: &[(ExerciseLot, &[WorkoutSetPersonalBest])] = &[
(ExerciseLot::RepsAndDuration, &[]),
(ExerciseLot::Reps, &[WorkoutSetPersonalBest::Reps]),
(ExerciseLot::Duration, &[WorkoutSetPersonalBest::Time]),
(
ExerciseLot::RepsAndDuration,
&[WorkoutSetPersonalBest::Reps, WorkoutSetPersonalBest::Time],
),
(
ExerciseLot::DistanceAndDuration,
&[WorkoutSetPersonalBest::Pace, WorkoutSetPersonalBest::Time],
Expand Down

0 comments on commit ec34e7b

Please sign in to comment.