|
|
|
|
@ -238,8 +238,11 @@ class CalendarFragment : SessionObserverFragment(), CoroutineScope, StaticRowRep |
|
|
|
|
else -> listOf(Comparator.YEAR, Comparator.MONTH_OF_YEAR).combined() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
val requiredStats: List<Stat> = listOf(Stat.LOCATIONS_PLAYED, Stat.LONGEST_STREAKS, Stat.DAYS_PLAYED) |
|
|
|
|
val options = Calculator.Options(evolutionValues = Calculator.Options.EvolutionValues.STANDARD, stats = requiredStats) |
|
|
|
|
monthConditions.forEach { conditions -> |
|
|
|
|
val report = Calculator.computeStatsWithComparators(realm, conditions = conditions, options = Calculator.Options()) |
|
|
|
|
|
|
|
|
|
val report = Calculator.computeStatsWithComparators(realm, conditions = conditions, options = options) |
|
|
|
|
report.results.forEach { computedResults -> |
|
|
|
|
if (!computedResults.isEmpty) { |
|
|
|
|
// Set date data |
|
|
|
|
@ -267,7 +270,7 @@ class CalendarFragment : SessionObserverFragment(), CoroutineScope, StaticRowRep |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
yearConditions.forEach { conditions -> |
|
|
|
|
val report = Calculator.computeStatsWithComparators(realm, conditions = conditions, options = Calculator.Options()) |
|
|
|
|
val report = Calculator.computeStatsWithComparators(realm, conditions = conditions, options = options) |
|
|
|
|
report.results.forEach { computedResults -> |
|
|
|
|
if (!computedResults.isEmpty) { |
|
|
|
|
// Set date data |
|
|
|
|
|