diff pkg/imports/fa.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 1e96ff2da1f3
children f32d086b5dbf
line wrap: on
line diff
--- a/pkg/imports/fa.go	Fri Oct 25 17:48:33 2019 +0200
+++ b/pkg/imports/fa.go	Fri Oct 25 18:25:38 2019 +0200
@@ -21,6 +21,7 @@
 	"errors"
 	"fmt"
 	"sort"
+	"strings"
 	"time"
 
 	"github.com/jackc/pgx/pgtype"
@@ -160,6 +161,14 @@
 )ON CONFLICT ON CONSTRAINT fa_reference_values_pkey DO NOTHING`
 )
 
+func (fa *FairwayAvailability) Description() (string, error) {
+
+	var descs []string
+
+	descs = append(descs, fa.URL)
+	return strings.Join(descs, "|"), nil
+}
+
 type faJobCreator struct{}
 
 func init() {