allPages=True in scalardata services can concatenate data from multiple pages. However the actualSamples is not summed.
Steps to reproduce:
- Run the code snippet below. Without "rowLimit", the json should return 60 files.
params = {
"deviceCode": "BPR-Folger-59",
"dateFrom": "2019-11-23T00:00:00.000Z",
"dateTo": "2019-11-23T00:01:00.000Z",
"rowLimit": 25,
}
data = onc.getDirectByDevice(params, allPages=True)
data["sensorData"]
Expected behavior:
- actualSamples should be 60.
Actual behavior:
- actualSamples is 25 (it returns the value from querying the first page)