comparison pkg/controllers/fwa.go @ 5227:fa55f403985b new-fwa

Added a comment about the mode.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 12 May 2020 12:38:31 +0200
parents 755d54cd7fd0
children f3a88039d822
comparison
equal deleted inserted replaced
5226:755d54cd7fd0 5227:fa55f403985b
304 validities := make([]func(time.Time, time.Time) *limitingValidity, len(bottlenecks)) 304 validities := make([]func(time.Time, time.Time) *limitingValidity, len(bottlenecks))
305 for i := range bottlenecks { 305 for i := range bottlenecks {
306 validities[i] = bottlenecks[i].validities.find() 306 validities[i] = bottlenecks[i].validities.find()
307 } 307 }
308 308
309 // Mode reflects if we use monthly, quarterly od yearly intervals.
309 mode := parseFWAMode(req.FormValue("mode")) 310 mode := parseFWAMode(req.FormValue("mode"))
310 311
311 label, finish := interval(mode, from) 312 label, finish := interval(mode, from)
312 313
313 var totalDays, shipableDays int 314 var totalDays, shipableDays int