Mercurial > gemma
diff pkg/imports/wp.go @ 4798:ca6a5f722471
Added Description method to most imports.
Only for imports where information relevant to the administrator is
relevant.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Fri, 25 Oct 2019 18:25:38 +0200 |
parents | 49012340336c |
children | f32d086b5dbf |
line wrap: on
line diff
--- a/pkg/imports/wp.go Fri Oct 25 17:48:33 2019 +0200 +++ b/pkg/imports/wp.go Fri Oct 25 18:25:38 2019 +0200 @@ -59,6 +59,15 @@ Password string `json:"password,omitempty"` } +func (wp *WaterwayProfiles) Description() (string, error) { + + var descs []string + + descs = append(descs, wp.URL) + descs = append(descs, wp.FeatureType) + return strings.Join(descs, "|"), nil +} + // WPJobKind is the unique name of this import job type. const WPJobKind JobKind = "wp"