Mercurial > gemma
comparison pkg/imports/sr.go @ 2168:b868cb653c4d
Import queue: The job kind parameter when creating a new job from a string was never used.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 08 Feb 2019 15:39:17 +0100 |
parents | 59055c8301df |
children | 7c83b5277c1c |
comparison
equal
deleted
inserted
replaced
2167:40f26fbc505f | 2168:b868cb653c4d |
---|---|
75 | 75 |
76 func (srJobCreator) Description() string { return "sounding results" } | 76 func (srJobCreator) Description() string { return "sounding results" } |
77 | 77 |
78 func (srJobCreator) AutoAccept() bool { return false } | 78 func (srJobCreator) AutoAccept() bool { return false } |
79 | 79 |
80 func (srJobCreator) Create(_ JobKind, data string) (Job, error) { | 80 func (srJobCreator) Create(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 |
84 } | 84 } |
85 return sr, nil | 85 return sr, nil |