From a17d069202dcaabbb142da80f317cbe1f9446c8f Mon Sep 17 00:00:00 2001 From: Joachim Kohlhammer Date: Mon, 5 Aug 2024 16:21:11 +0200 Subject: [PATCH] TrainerDay: Set fallback for max workouts per page See https://github.com/GoldenCheetah/GoldenCheetah/pull/4522#issuecomment-2253027635 --- src/Train/TrainerDayAPIDialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Train/TrainerDayAPIDialog.cpp b/src/Train/TrainerDayAPIDialog.cpp index 7b12e0212..d5e282a89 100644 --- a/src/Train/TrainerDayAPIDialog.cpp +++ b/src/Train/TrainerDayAPIDialog.cpp @@ -26,6 +26,10 @@ #include "TrainDB.h" #include "Secrets.h" +#if !defined(GC_TRAINERDAY_API_PAGESIZE) +#define GC_TRAINERDAY_API_PAGESIZE 25 +#endif + #if defined(GC_WANT_TRAINERDAY_API) TrainerDayAPIDialog::TrainerDayAPIDialog