zwxi 1 rok pred
rodič
commit
dbbc66cb63
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      services/base_from_ths_ds.go

+ 1 - 1
services/base_from_ths_ds.go

@@ -196,11 +196,11 @@ func getEdbDataFromThsDsApp(stockCode, edbCode, startDate, endDate string, num i
 		for _, stockData := range response.Data {
 			time := stockData["time"].(string)
 			//thsCode := stockData["thscode"].(string)
-			tableTimeList = append(tableTimeList, time)
 
 			for k, v := range stockData {
 				if k != "time" && k != "thscode" {
 					if v != nil {
+						tableTimeList = append(tableTimeList, time)
 						tableValueList = append(tableValueList, v.(float64))
 					}
 				}