comparison pkg/controllers/fwa.go @ 5218:7dbb7cc6dbfa new-fwa

Remove old routes for availabilties.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 11 May 2020 20:10:15 +0200
parents 70d83b7d36ef
children 142ac550bd9a
comparison
equal deleted inserted replaced
5217:70d83b7d36ef 5218:7dbb7cc6dbfa
196 los, ok := parseFormInt(rw, req, "los", 1) 196 los, ok := parseFormInt(rw, req, "los", 1)
197 if !ok { 197 if !ok {
198 return 198 return
199 } 199 }
200 200
201 // TODO: Use this.
202 availability := vars["type"] == "availability"
203 _ = availability
204
201 ctx := req.Context() 205 ctx := req.Context()
202 conn := middleware.GetDBConn(req) 206 conn := middleware.GetDBConn(req)
203 207
204 // Function to extract the bottleneck_id's from the query. 208 // Function to extract the bottleneck_id's from the query.
205 var extract func(context.Context, *sql.Conn, string, time.Time, time.Time) (bottlenecks, error) 209 var extract func(context.Context, *sql.Conn, string, time.Time, time.Time) (bottlenecks, error)