Fix scores with null habit

pull/77/merge
Alinson S. Xavier 10 years ago
parent 96c46b655d
commit cbc8cbfea3

@ -164,10 +164,10 @@ public class ScoreList
try
{
SQLiteStatement statement = db.compileStatement(query);
statement.bindString(1, habit.getId().toString());
for (int i = 0; i < timestamps.length; i++)
{
statement.bindLong(1, habit.getId());
statement.bindLong(2, timestamps[i]);
statement.bindLong(3, values[i]);
statement.execute();

Loading…
Cancel
Save