diff --git a/createfilter/main.go b/createfilter/main.go index cf36d31..43c2d1c 100644 --- a/createfilter/main.go +++ b/createfilter/main.go @@ -193,6 +193,9 @@ func DetectDateFinEffectif(path string, nIgnoredCols int) (dateFinEffectif time. nbColsToExclude := guessLastNMissingFromReader(r, nIgnoredCols) lastColWithValue := len(header) - 1 - nbColsToExclude - nIgnoredCols lastPeriodWithValue := header[lastColWithValue] + log.Printf("nbColsToExclude: %d\n", nbColsToExclude) + log.Printf("lastColWithValue: %d\n", lastColWithValue) + log.Printf("lastPeriodWithValue: %s\n", lastPeriodWithValue) return effectifColNameToDate(lastPeriodWithValue) }