fix sql error on add treatment
This commit is contained in:
parent
ec3b74aad2
commit
9aa1a451e5
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ public class DataService extends IntentService {
|
|||
treatment.created_at = new Date(trJson.getLong("mills"));
|
||||
treatment.setTimeIndex(treatment.getTimeIndex());
|
||||
try {
|
||||
MainApp.getDbHelper().getDaoTreatments().create(treatment);
|
||||
MainApp.getDbHelper().getDaoTreatments().createOrUpdate(treatment);
|
||||
if (Config.logIncommingData)
|
||||
log.debug("ADD: Stored treatment: " + treatment.log());
|
||||
} catch (SQLException e) {
|
||||
|
|
Loading…
Reference in a new issue