Mercurial > gemma
comparison pkg/imports/bn.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 | ad5e1cddaa09 |
children | c4af342be999 |
comparison
equal
deleted
inserted
replaced
1753:68bd990dd8e5 | 1754:807569b08513 |
---|---|
83 | 83 |
84 func init() { | 84 func init() { |
85 RegisterJobCreator(BNJobKind, bnJobCreator{}) | 85 RegisterJobCreator(BNJobKind, bnJobCreator{}) |
86 } | 86 } |
87 | 87 |
88 func (bnJobCreator) Description() string { | 88 func (bnJobCreator) Description() string { return "bottlenecks" } |
89 return "bottlenecks" | 89 |
90 } | 90 func (bnJobCreator) AutoAccept() bool { return false } |
91 | 91 |
92 func (bnJobCreator) Create(_ JobKind, data string) (Job, error) { | 92 func (bnJobCreator) Create(_ JobKind, data string) (Job, error) { |
93 bn := new(Bottleneck) | 93 bn := new(Bottleneck) |
94 if err := common.FromJSONString(data, bn); err != nil { | 94 if err := common.FromJSONString(data, bn); err != nil { |
95 return nil, err | 95 return nil, err |