For TrainAsONE exhaustive fetch, use larger list pageSize
@@ -75,6 +75,9 @@ class TrainAsONEService(ServiceBase):
def DownloadActivityList(self, serviceRecord, exhaustive=False):
allItems = []
+ if exhaustive:
+ pageUri = TRAINASONE_SERVER_URL + "/api/sync/activities?pageSize=200"
+ else:
pageUri = TRAINASONE_SERVER_URL + "/api/sync/activities"
while True:
