Mercurial > gemma
comparison pkg/imports/modelconvert.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 | 09f9ae3d0526 |
children | a10022399e24 |
comparison
equal
deleted
inserted
replaced
2562:ce39e9954e85 | 2563:dc4fae4bdb8f |
---|---|
37 var convertModel = map[JobKind]func(interface{}) interface{}{ | 37 var convertModel = map[JobKind]func(interface{}) interface{}{ |
38 | 38 |
39 BNJobKind: func(input interface{}) interface{} { | 39 BNJobKind: func(input interface{}) interface{} { |
40 bi := input.(*models.BottleneckImport) | 40 bi := input.(*models.BottleneckImport) |
41 return &Bottleneck{ | 41 return &Bottleneck{ |
42 URL: bi.URL, | 42 URL: bi.URL, |
43 Insecure: bi.Insecure, | 43 Tolerance: bi.Tolerance, |
44 Insecure: bi.Insecure, | |
44 } | 45 } |
45 }, | 46 }, |
46 | 47 |
47 GMJobKind: func(input interface{}) interface{} { | 48 GMJobKind: func(input interface{}) interface{} { |
48 gi := input.(*models.GaugeMeasurementImport) | 49 gi := input.(*models.GaugeMeasurementImport) |
125 sti := input.(*models.StretchImport) | 126 sti := input.(*models.StretchImport) |
126 return &Stretch{ | 127 return &Stretch{ |
127 Name: sti.Name, | 128 Name: sti.Name, |
128 From: sti.From, | 129 From: sti.From, |
129 To: sti.To, | 130 To: sti.To, |
131 Tolerance: sti.Tolerance, | |
130 ObjNam: sti.ObjNam, | 132 ObjNam: sti.ObjNam, |
131 NObjNam: sti.NObjNam, | 133 NObjNam: sti.NObjNam, |
132 Source: sti.Source, | 134 Source: sti.Source, |
133 Date: sti.Date, | 135 Date: sti.Date, |
134 Countries: sti.Countries, | 136 Countries: sti.Countries, |