diff pkg/imports/sr.go @ 1900:6a67cd819e93

To prepare stretch import made some model data types re-usable.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 18 Jan 2019 15:04:53 +0100
parents 09349ca27dd7
children 59055c8301df
line wrap: on
line diff
--- a/pkg/imports/sr.go	Fri Jan 18 14:58:34 2019 +0100
+++ b/pkg/imports/sr.go	Fri Jan 18 15:04:53 2019 +0100
@@ -48,7 +48,7 @@
 
 	// Override data
 	// Date if given overrides the date value from the meta.json.
-	Date *models.SoundingResultDate `json:"date,omitempty"`
+	Date *models.Date `json:"date,omitempty"`
 	// Date if given overrides the name of the bottleneck from the meta.json.
 	Bottleneck *string `json:"bottleneck,omitempty"`
 	// EPSG if given overrides the EPSG code from the meta.json.
@@ -311,10 +311,10 @@
 	}
 
 	summary := struct {
-		Bottleneck string                    `json:"bottleneck"`
-		Date       models.SoundingResultDate `json:"date"`
-		Lat        float64                   `json:"lat"`
-		Lon        float64                   `json:"lon"`
+		Bottleneck string      `json:"bottleneck"`
+		Date       models.Date `json:"date"`
+		Lat        float64     `json:"lat"`
+		Lon        float64     `json:"lon"`
 	}{
 		Bottleneck: m.Bottleneck,
 		Date:       m.Date,