Mercurial > gemma
diff pkg/imports/dsr.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 | 911b1349a9bd |
children | f32d086b5dbf |
line wrap: on
line diff
--- a/pkg/imports/dsr.go Fri Oct 25 17:48:33 2019 +0200 +++ b/pkg/imports/dsr.go Fri Oct 25 18:25:38 2019 +0200 @@ -18,7 +18,9 @@ "context" "database/sql" "errors" + "strings" + "gemma.intevation.de/gemma/pkg/common" "gemma.intevation.de/gemma/pkg/models" ) @@ -28,6 +30,15 @@ Date models.Date `json:"date-info"` } +func (dsr *DeleteSoundingResult) Description() (string, error) { + + var descs []string + + descs = append(descs, dsr.BottleneckId) + descs = append(descs, dsr.Date.Format(common.DateFormat)) + return strings.Join(descs, "|"), nil +} + // DSRJobKind is the import queue type identifier. const DSRJobKind JobKind = "dsr"