Simplify forecast panel and extend horizon
This commit is contained in:
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user