comparison pkg/imports/dsr.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 4847ac70103a
comparison
equal deleted inserted replaced
4798:ca6a5f722471 4799:f32d086b5dbf
1 // This is Free Software under GNU Affero General Public License v >= 3.0
2 // without warranty, see README.md and license for details. 1 // without warranty, see README.md and license for details.
3 // 2 //
4 // SPDX-License-Identifier: AGPL-3.0-or-later 3 // SPDX-License-Identifier: AGPL-3.0-or-later
5 // License-Filename: LICENSES/AGPL-3.0.txt 4 // License-Filename: LICENSES/AGPL-3.0.txt
6 // 5 //
16 15
17 import ( 16 import (
18 "context" 17 "context"
19 "database/sql" 18 "database/sql"
20 "errors" 19 "errors"
21 "strings"
22 20
23 "gemma.intevation.de/gemma/pkg/common" 21 "gemma.intevation.de/gemma/pkg/common"
24 "gemma.intevation.de/gemma/pkg/models" 22 "gemma.intevation.de/gemma/pkg/models"
25 ) 23 )
26 24
29 BottleneckId string `json:"bottleneck-id"` 27 BottleneckId string `json:"bottleneck-id"`
30 Date models.Date `json:"date-info"` 28 Date models.Date `json:"date-info"`
31 } 29 }
32 30
33 func (dsr *DeleteSoundingResult) Description() (string, error) { 31 func (dsr *DeleteSoundingResult) Description() (string, error) {
34 32 return dsr.BottleneckId + "|" + dsr.Date.Format(common.DateFormat), nil
35 var descs []string
36
37 descs = append(descs, dsr.BottleneckId)
38 descs = append(descs, dsr.Date.Format(common.DateFormat))
39 return strings.Join(descs, "|"), nil
40 } 33 }
41 34
42 // DSRJobKind is the import queue type identifier. 35 // DSRJobKind is the import queue type identifier.
43 const DSRJobKind JobKind = "dsr" 36 const DSRJobKind JobKind = "dsr"
44 37