comparison pkg/imports/sec.go @ 4799:f32d086b5dbf

Removed the mechanical touch of the last commit.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 25 Oct 2019 18:40:37 +0200
parents ca6a5f722471
children 046a07a33b19
comparison
equal deleted inserted replaced
4798:ca6a5f722471 4799:f32d086b5dbf
33 Source string `json:"source-organization"` 33 Source string `json:"source-organization"`
34 Date models.Date `json:"date-info"` 34 Date models.Date `json:"date-info"`
35 } 35 }
36 36
37 func (sec *Section) Description() (string, error) { 37 func (sec *Section) Description() (string, error) {
38 38 return strings.Join([]string{
39 var descs []string 39 sec.Name,
40 40 sec.ObjNam,
41 descs = append(descs, sec.Name) 41 sec.From.String(),
42 descs = append(descs, sec.ObjNam) 42 sec.To.String(),
43 descs = append(descs, sec.From.String()) 43 }, "|"), nil
44 descs = append(descs, sec.To.String())
45 return strings.Join(descs, "|"), nil
46 } 44 }
47 45
48 // SECJobKind is the import queue type identifier. 46 // SECJobKind is the import queue type identifier.
49 const SECJobKind JobKind = "sec" 47 const SECJobKind JobKind = "sec"
50 48