Remove calls to Repetition.add and Repetition.remove

This commit is contained in:
2020-11-26 14:19:02 -06:00
parent f97fed3b9b
commit 61414d62f4
5 changed files with 46 additions and 28 deletions

View File

@@ -128,8 +128,7 @@ public class HabitFixtures
Timestamp timestamp = DateUtils.getToday();
for (int value : LONG_NUMERICAL_HABIT_CHECKS)
{
Repetition r = new Repetition(timestamp, value);
habit.getRepetitions().add(r);
habit.getRepetitions().setValue(timestamp, value);
timestamp = timestamp.minus(1);
}