Mercurial > gemma
comparison pkg/controllers/uploadedimports.go @ 2563:dc4fae4bdb8f
Expose axis snapping tolerance to users
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 08 Mar 2019 19:15:47 +0100 |
parents | ce39e9954e85 |
children | bc1b43885a4d |
comparison
equal
deleted
inserted
replaced
2562:ce39e9954e85 | 2563:dc4fae4bdb8f |
---|---|
90 func importUploadedBottleneck() http.HandlerFunc { | 90 func importUploadedBottleneck() http.HandlerFunc { |
91 return uploadedImport( | 91 return uploadedImport( |
92 imports.UBNJobKind, | 92 imports.UBNJobKind, |
93 "data.xml", | 93 "data.xml", |
94 func(_ *http.Request, dir string) (imports.Job, error) { | 94 func(_ *http.Request, dir string) (imports.Job, error) { |
95 return &imports.UploadedBottleneck{Dir: dir}, nil | 95 // TODO expose tolerance to endpoint |
96 return &imports.UploadedBottleneck{Dir: dir, Tolerance: 5}, nil | |
96 }, | 97 }, |
97 ) | 98 ) |
98 } | 99 } |
99 | 100 |
100 func importUploadedFairwayAvailability() http.HandlerFunc { | 101 func importUploadedFairwayAvailability() http.HandlerFunc { |