Mercurial > gemma
diff pkg/controllers/manualimports.go @ 1862:427f86518097
Added distance marks importer in backend.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 17 Jan 2019 13:16:23 +0100 |
parents | bbd653a43a6a |
children | 71b722809b2b |
line wrap: on
line diff
--- a/pkg/controllers/manualimports.go Thu Jan 17 13:15:22 2019 +0100 +++ b/pkg/controllers/manualimports.go Thu Jan 17 13:16:23 2019 +0100 @@ -133,6 +133,17 @@ return fd, due, retries, fdi.SendEmail } +func importDistanceMarksAshore(input interface{}) (interface{}, time.Time, int, bool) { + dmai := input.(*models.DistanceMarksAshoreImport) + dma := &imports.DistanceMarksAshore{ + URL: dmai.URL, + FeatureType: dmai.FeatureType, + SortBy: dmai.SortBy, + } + due, retries := retry(dmai.Attributes) + return dma, due, retries, dmai.SendEmail +} + func manualImport( kind imports.JobKind, setup func(interface{}) (interface{}, time.Time, int, bool),