Skip to content
Snippets Groups Projects
Commit a99420ad authored by Tucker Siegel's avatar Tucker Siegel
Browse files

fix swagger

parent c637e4c4
No related branches found
No related tags found
No related merge requests found
......@@ -114,9 +114,12 @@ func ForecastFirstLastFreeze(ctx common.DawnCtx, request models.FreezingForecast
lastFreezeIdx := 0
firstFreezeIdx := 0
baseData := persistence.CurrentGddFindFirstByYearAndLocation(ctx, models.BuildLocation(request.Latitude, request.Longitude))
cfsData := persistence.CfsFindAllByLocation(models.BuildLocation(request.Latitude, request.Longitude))
normalsData := persistence.NormalsFindFirstByYearAndLocation(models.BuildLocation(request.Latitude, request.Longitude))
cfsData.MinTemps = append(baseData.MinTemps, cfsData.MinTemps...)
if len(cfsData.MinTemps) < len(normalsData.MinTemps) {
smallerNormalRegion := normalsData.MinTemps[len(cfsData.MinTemps):]
cfsData.MinTemps = append(cfsData.MinTemps, smallerNormalRegion...)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment