diff pkg/controllers/manualimports.go @ 1785:614c6c766691

Waterway area import: Implemented.
author Sascha L. Teichmann <teichmann@intevation.de>
date Sat, 12 Jan 2019 19:53:31 +0100
parents 807569b08513
children 77582da3adb0
line wrap: on
line diff
--- a/pkg/controllers/manualimports.go	Fri Jan 11 19:46:21 2019 +0100
+++ b/pkg/controllers/manualimports.go	Sat Jan 12 19:53:31 2019 +0100
@@ -76,6 +76,17 @@
 	return wx, due, retries, wxi.SendEmail
 }
 
+func importWaterwayArea(input interface{}) (interface{}, time.Time, int, bool) {
+	wai := input.(*models.WaterwayAreaImport)
+	wa := &imports.WaterwayArea{
+		URL:         wai.URL,
+		FeatureType: wai.FeatureType,
+		SortBy:      wai.SortBy,
+	}
+	due, retries := retry(wai.Attributes)
+	return wa, due, retries, wai.SendEmail
+}
+
 func manualImport(
 	kind imports.JobKind,
 	setup func(interface{}) (interface{}, time.Time, int, bool),