Mercurial > gemma
comparison pkg/imports/gm.go @ 3709:d4a8d084eab4
import: Use dates_issue parameter in gm imports.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 20 Jun 2019 11:16:14 +0200 |
parents | 391afcc961a2 |
children | 7431c6680b90 |
comparison
equal
deleted
inserted
replaced
3708:daabb540a204 | 3709:d4a8d084eab4 |
---|---|
171 | 171 |
172 fetch := func() ([]*nts.RIS_Message_Type, error) { | 172 fetch := func() ([]*nts.RIS_Message_Type, error) { |
173 client := nts.NewINtSMessageService(gm.URL, gm.Insecure, nil) | 173 client := nts.NewINtSMessageService(gm.URL, gm.Insecure, nil) |
174 | 174 |
175 mt := nts.Message_type_typeWRM | 175 mt := nts.Message_type_typeWRM |
176 var dis []*nts.Date_pair | |
177 dis = append(dis, &nts.Date_pair{ | |
178 Date_start: nts.Date{time.Now().Add(time.Duration(-24) * time.Hour)}, | |
179 Date_end: nts.Date{time.Now()}, | |
180 }) | |
176 | 181 |
177 req := &nts.Get_messages_query{ | 182 req := &nts.Get_messages_query{ |
178 Message_type: &mt, | 183 Message_type: &mt, |
184 Dates_issue: dis, | |
179 } | 185 } |
180 | 186 |
181 const maxTries = 3 | 187 const maxTries = 3 |
182 | 188 |
183 tries := 0 | 189 tries := 0 |