Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe Commits: adfa7553 by Tony Chemit at 2022-04-25T17:35:39+02:00 Statistique bizarre sur plan de cuves - Closes #2287 - - - - - 1 changed file: - core/persistence/resources/src/main/java/fr/ird/observe/persistence/avdth/data/ImportEngineExecution.java Changes: ===================================== core/persistence/resources/src/main/java/fr/ird/observe/persistence/avdth/data/ImportEngineExecution.java ===================================== @@ -254,15 +254,13 @@ public class ImportEngineExecution extends ImportEngine { ResultSet wellRow = tables.wellTableReader.next(); WellPlan fictiveWellPlan = wellPlanReader.read(context, wellRow); tables.wellSetTableReader.setPrimaryKey(tables.wellTableReader.lastPrimaryKey()); - int tripIdx = 0; while (tables.wellSetTableReader.hasNext()) { ResultSet wellSetRow = tables.wellSetTableReader.next(); WellPlan wellPlan = wellPlanReader.readExtra(context, fictiveWellPlan, wellSetRow); if (wellPlan != null) { - wellPlanWriter.write(wellPlan, tripId, tripIdx++); + wellPlanWriter.write(wellPlan, tripId, wellPlanCount++); } } - wellPlanCount += tripIdx; } if (wellPlanCount > 0) { // found some wellPlan, update targetWellsSamplingAcquisitionStatus View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/adfa7553972217e57b47cf46ab... -- View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/adfa7553972217e57b47cf46ab... You're receiving this email because of your account on gitlab.com.