Mercurial > gemma
comparison pkg/imports/sr.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 | 819f67c31dfb |
children | 09349ca27dd7 |
comparison
equal
deleted
inserted
replaced
1753:68bd990dd8e5 | 1754:807569b08513 |
---|---|
71 | 71 |
72 func init() { | 72 func init() { |
73 RegisterJobCreator(SRJobKind, srJobCreator{}) | 73 RegisterJobCreator(SRJobKind, srJobCreator{}) |
74 } | 74 } |
75 | 75 |
76 func (srJobCreator) Description() string { | 76 func (srJobCreator) Description() string { return "sounding results" } |
77 return "sounding results" | 77 |
78 } | 78 func (srJobCreator) AutoAccept() bool { return false } |
79 | 79 |
80 func (srJobCreator) Create(_ JobKind, data string) (Job, error) { | 80 func (srJobCreator) Create(_ JobKind, data string) (Job, error) { |
81 sr := new(SoundingResult) | 81 sr := new(SoundingResult) |
82 if err := common.FromJSONString(data, sr); err != nil { | 82 if err := common.FromJSONString(data, sr); err != nil { |
83 return nil, err | 83 return nil, err |