log existing db record
This commit is contained in:
parent
5a192d82d0
commit
0e9366c6fe
1 changed files with 1 additions and 0 deletions
|
@ -619,6 +619,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
|
||||||
List<Treatment> trList = getDaoTreatments().query(preparedQuery);
|
List<Treatment> trList = getDaoTreatments().query(preparedQuery);
|
||||||
if (trList.size() > 0) {
|
if (trList.size() > 0) {
|
||||||
// do nothing, pump history record cannot be changed
|
// do nothing, pump history record cannot be changed
|
||||||
|
log.debug("TREATMENT: Pump record already found in database: " + treatment.toString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
getDaoTreatments().create(treatment);
|
getDaoTreatments().create(treatment);
|
||||||
|
|
Loading…
Reference in a new issue