From fd1e78aceffc7b6a7473141a9c37ca8982452e13 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Mon, 19 Mar 2018 23:15:13 +0100 Subject: [PATCH] TDD 11 - fix DanaR --- .../main/java/info/nightscout/androidaps/db/DatabaseHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java b/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java index 049e476dd8..dc0955ba83 100644 --- a/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java +++ b/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java @@ -987,7 +987,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper { getDaoDanaRHistory().createOrUpdate(record); //If it is a TDD, store it for stats also. - if(record.recordCode == RecordTypes.RECORD_TYPE_BOLUS){ + if(record.recordCode == RecordTypes.RECORD_TYPE_DAILY){ createOrUpdateTDD(new TDD(record.recordDate, record.recordDailyBolus, record.recordDailyBasal, 0)); }