show only valid data
This commit is contained in:
parent
56a0c97e96
commit
c611674b3b
1 changed files with 3 additions and 3 deletions
|
@ -548,14 +548,14 @@ class OverviewData @Inject constructor(
|
||||||
// val start = dateUtil.now()
|
// val start = dateUtil.now()
|
||||||
maxTreatmentsValue = 0.0
|
maxTreatmentsValue = 0.0
|
||||||
val filteredTreatments: MutableList<DataPointWithLabelInterface> = java.util.ArrayList()
|
val filteredTreatments: MutableList<DataPointWithLabelInterface> = java.util.ArrayList()
|
||||||
repository.getBolusesIncludingInvalidFromTimeToTime(fromTime, endTime, true).blockingGet()
|
repository.getBolusesDataFromTimeToTime(fromTime, endTime, true).blockingGet()
|
||||||
.map { BolusDataPoint(it, resourceHelper, activePlugin, defaultValueHelper) }
|
.map { BolusDataPoint(it, resourceHelper, activePlugin, defaultValueHelper) }
|
||||||
.filter { it.data.type != Bolus.Type.SMB || it.data.isValid }
|
.filter { it.data.type == Bolus.Type.NORMAL || it.data.type == Bolus.Type.SMB }
|
||||||
.forEach {
|
.forEach {
|
||||||
it.y = getNearestBg(it.x.toLong())
|
it.y = getNearestBg(it.x.toLong())
|
||||||
filteredTreatments.add(it)
|
filteredTreatments.add(it)
|
||||||
}
|
}
|
||||||
repository.getCarbsIncludingInvalidFromTimeToTimeExpanded(fromTime, endTime, true).blockingGet()
|
repository.getCarbsDataFromTimeToTimeExpanded(fromTime, endTime, true).blockingGet()
|
||||||
.map { CarbsDataPoint(it, resourceHelper) }
|
.map { CarbsDataPoint(it, resourceHelper) }
|
||||||
.forEach {
|
.forEach {
|
||||||
it.y = getNearestBg(it.x.toLong())
|
it.y = getNearestBg(it.x.toLong())
|
||||||
|
|
Loading…
Reference in a new issue