Skip to content

Commit a9e04c7

Browse files
committed
Raw dublicate fix
1 parent def275d commit a9e04c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Common/src/mobile/java/tk/glucodata/data/HistoryRepository.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,15 +419,15 @@ class HistoryRepository(context: Context = Applic.app) {
419419
}
420420

421421
private fun mapReadings(readings: List<HistoryReading>): List<GlucosePoint> {
422-
return HistoryDisplayPolicy.coalesceDisplayReadings(readings).map { reading ->
422+
return readings.map { reading ->
423423
GlucosePoint(
424424
value = reading.value,
425425
time = formatTime(reading.timestamp),
426426
timestamp = reading.timestamp,
427427
rawValue = reading.rawValue,
428428
rate = reading.rate
429429
)
430-
}
430+
}.distinctBy { it.timestamp }
431431
}
432432

433433
private fun formatTime(timestamp: Long): String =

0 commit comments

Comments
 (0)