mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Fix scores with null habit
This commit is contained in:
@@ -164,10 +164,10 @@ public class ScoreList
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
SQLiteStatement statement = db.compileStatement(query);
|
SQLiteStatement statement = db.compileStatement(query);
|
||||||
statement.bindString(1, habit.getId().toString());
|
|
||||||
|
|
||||||
for (int i = 0; i < timestamps.length; i++)
|
for (int i = 0; i < timestamps.length; i++)
|
||||||
{
|
{
|
||||||
|
statement.bindLong(1, habit.getId());
|
||||||
statement.bindLong(2, timestamps[i]);
|
statement.bindLong(2, timestamps[i]);
|
||||||
statement.bindLong(3, values[i]);
|
statement.bindLong(3, values[i]);
|
||||||
statement.execute();
|
statement.execute();
|
||||||
|
|||||||
Reference in New Issue
Block a user