diff --git a/app.py b/app.py index b59e634..61fbc74 100644 --- a/app.py +++ b/app.py @@ -243,7 +243,7 @@ def get_exercise_progress_for_user(person_id, exercise_id): degree = request.args.get('degree', type=int, default=1) forecast_enabled = request.args.get('forecast', '').lower() in ('1', 'true', 'yes', 'on') forecast_weeks = request.args.get('forecast_weeks', type=int, default=8) - forecast_weeks = max(4, min(forecast_weeks, 26)) + forecast_weeks = max(4, min(forecast_weeks, 52)) forecast_target_reps = request.args.get('forecast_reps', type=int) if forecast_target_reps is not None: forecast_target_reps = max(1, min(forecast_target_reps, 20)) diff --git a/routes/workout.py b/routes/workout.py index 43fe51e..0618b7f 100644 --- a/routes/workout.py +++ b/routes/workout.py @@ -303,7 +303,7 @@ def get_exercise_history(person_id, exercise_id): source_topset_id = request.args.get('source_topset_id', type=int) forecast_enabled = request.args.get('forecast', '').lower() in ('1', 'true', 'yes', 'on') forecast_weeks = request.args.get('forecast_weeks', type=int, default=8) - forecast_weeks = max(4, min(forecast_weeks, 26)) + forecast_weeks = max(4, min(forecast_weeks, 52)) forecast_target_reps = request.args.get('forecast_reps', type=int) if forecast_target_reps is not None: forecast_target_reps = max(1, min(forecast_target_reps, 20)) diff --git a/templates/partials/exercise_history.html b/templates/partials/exercise_history.html index 46278bc..6a62702 100644 --- a/templates/partials/exercise_history.html +++ b/templates/partials/exercise_history.html @@ -23,7 +23,7 @@ - {% if best_fit_formula %} + {% if best_fit_formula and not forecast_enabled %}