Mercurial > gemma
changeset 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 | c1c85e70a368 |
children | aac1ca73e92a |
files | pkg/imports/gm.go |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/imports/gm.go Thu May 16 10:43:42 2019 +0200 +++ b/pkg/imports/gm.go Thu May 16 11:00:19 2019 +0200 @@ -348,6 +348,11 @@ newP++ } } else { + if measure.Value == nil { + feedback.Info("Missing value at %s. Ignored", + measure.Measuredate.Format(time.RFC3339)) + continue + } err = insertGMStmt.QueryRowContext( ctx, currIsrs.CountryCode,