TDD 11 - fix DanaR

This commit is contained in:
AdrianLxM 2018-03-19 23:15:13 +01:00
parent fcf8569b1e
commit fd1e78acef

View file

@ -987,7 +987,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
getDaoDanaRHistory().createOrUpdate(record); getDaoDanaRHistory().createOrUpdate(record);
//If it is a TDD, store it for stats also. //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)); createOrUpdateTDD(new TDD(record.recordDate, record.recordDailyBolus, record.recordDailyBasal, 0));
} }