log existing db record

This commit is contained in:
Milos Kozak 2018-04-01 22:21:46 +02:00
parent 5a192d82d0
commit 0e9366c6fe

View file

@ -619,6 +619,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
List<Treatment> trList = getDaoTreatments().query(preparedQuery);
if (trList.size() > 0) {
// do nothing, pump history record cannot be changed
log.debug("TREATMENT: Pump record already found in database: " + treatment.toString());
return false;
}
getDaoTreatments().create(treatment);