mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-07 01:28:52 -06:00
ScoreList: Revert recent changes to computation of scores
This commit is contained in:
@@ -275,16 +275,13 @@ 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 /= habit.getTargetValue();
|
||||||
value /= 1000;
|
|
||||||
value /= habit.getTargetValue();
|
|
||||||
}
|
|
||||||
value = Math.min(1, value);
|
|
||||||
previousValue = Score.compute(freq, previousValue, value);
|
|
||||||
}
|
}
|
||||||
|
value = Math.min(1, value);
|
||||||
|
previousValue = Score.compute(freq, previousValue, value);
|
||||||
scores.add(new Score(from.plus(i), previousValue));
|
scores.add(new Score(from.plus(i), previousValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user