mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-05 01:37:27 +08:00
[F] Fix graph logic
This commit is contained in:
@@ -40,7 +40,7 @@ fun findTrend(log: List<TrendLog>): List<TrendOut> {
|
||||
.sortedBy { it.date }.toMutableList()
|
||||
|
||||
// Fill in the missing dates (min date and current date)
|
||||
trend[0].let { if (it.date != minDate) trend.add(0, TrendOut(minDate, 0, 0)) }
|
||||
trend[0].let { if (it.date > minDate) trend.add(0, TrendOut(minDate, 0, 0)) }
|
||||
trend.last().let { if (it.date != now) trend.add(TrendOut(now, it.rating, 0)) }
|
||||
|
||||
return trend
|
||||
|
||||
Reference in New Issue
Block a user