comparison pkg/imports/gm.go @ 3284:7ae1892773a2

Avoid trying to insert explicit missing values received from NtS
author Tom Gottfried <tom@intevation.de>
date Thu, 16 May 2019 11:00:19 +0200
parents 831193935739
children 6514b943654e
comparison
equal deleted inserted replaced
3283:c1c85e70a368 3284:7ae1892773a2
346 feedback.Warn(handleError(err).Error()) 346 feedback.Warn(handleError(err).Error())
347 default: 347 default:
348 newP++ 348 newP++
349 } 349 }
350 } else { 350 } else {
351 if measure.Value == nil {
352 feedback.Info("Missing value at %s. Ignored",
353 measure.Measuredate.Format(time.RFC3339))
354 continue
355 }
351 err = insertGMStmt.QueryRowContext( 356 err = insertGMStmt.QueryRowContext(
352 ctx, 357 ctx,
353 currIsrs.CountryCode, 358 currIsrs.CountryCode,
354 currIsrs.LoCode, 359 currIsrs.LoCode,
355 currIsrs.FairwaySection, 360 currIsrs.FairwaySection,