diff pkg/imports/wx.go @ 1754:807569b08513

Import queue: Auto acceptance is now a property of the import kind itself and is not configurable any more.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 10 Jan 2019 16:19:26 +0100
parents fb05027d93b6
children bb4348ac52ab
line wrap: on
line diff
--- a/pkg/imports/wx.go	Thu Jan 10 15:55:08 2019 +0100
+++ b/pkg/imports/wx.go	Thu Jan 10 16:19:26 2019 +0100
@@ -52,9 +52,9 @@
 	RegisterJobCreator(WXJobKind, wxJobCreator{})
 }
 
-func (wxJobCreator) Description() string {
-	return "waterway axis"
-}
+func (wxJobCreator) Description() string { return "waterway axis" }
+
+func (wxJobCreator) AutoAccept() bool { return true }
 
 func (wxJobCreator) Create(_ JobKind, data string) (Job, error) {
 	wx := new(WaterwayAxis)