ScoreList: Revert recent changes to computation of scores

This commit is contained in:
2020-09-02 07:01:54 -05:00
parent c846dfc75a
commit 9d28fbe7b5

View File

@@ -275,8 +275,6 @@ public abstract class ScoreList implements Iterable<Score>
for (int i = 0; i < checkmarkValues.length; i++) for (int i = 0; i < checkmarkValues.length; i++)
{ {
double value = checkmarkValues[checkmarkValues.length - i - 1]; double value = checkmarkValues[checkmarkValues.length - i - 1];
if (!habit.isNumerical() || value != Checkmark.SKIPPED)
{
if (habit.isNumerical()) if (habit.isNumerical())
{ {
value /= 1000; value /= 1000;
@@ -284,7 +282,6 @@ public abstract class ScoreList implements Iterable<Score>
} }
value = Math.min(1, value); value = Math.min(1, value);
previousValue = Score.compute(freq, previousValue, value); previousValue = Score.compute(freq, previousValue, value);
}
scores.add(new Score(from.plus(i), previousValue)); scores.add(new Score(from.plus(i), previousValue));
} }