Explorar o código

Merge branch 'feature/eta2.6.5_kpler' into debug

xyxie hai 1 semana
pai
achega
030d565141
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      services/base_from_kpler.go

+ 2 - 2
services/base_from_kpler.go

@@ -54,14 +54,14 @@ func getKplerDataByApi(params models.KplerSearchEdbReq, serverUrl string) (list
 	fromZoneNamesStr := params.FromZoneNames
 	toZoneNamesStr := params.ToZoneNames
 	
-	//granularity := GetKplerGranularity(params.Granularity)
+	granularity := GetKplerGranularity(params.Granularity)
 	libreq := new(models.KplerFlowDataLibReq)
 	libreq.Products = productNamesStr
 	libreq.FromZones = fromZoneNamesStr
 	libreq.ToZones = toZoneNamesStr
 	libreq.Split = params.Split
 	libreq.FlowDirection = params.FlowDirection
-	libreq.Granularity = params.Granularity
+	libreq.Granularity = granularity
 	libreq.Unit = params.Unit
 	libreq.WithIntraRegion = "true"
 	libreq.WithForecast = "true"