diff --git a/core/candle.go b/core/candle.go index 791b294..6a4d29a 100644 --- a/core/candle.go +++ b/core/candle.go @@ -19,6 +19,7 @@ import ( ) type Candle struct { + Id string `json:"_id"` core *Core InstId string Period string @@ -284,8 +285,8 @@ func (core *Core) SaveUniKey(period string, keyName string, extt time.Duration, return } - // did := cl.InstId + cl.Period + cl.Data[0].(string) - // cl.Id = did + did := cl.InstId + cl.Period + cl.Data[0].(string) + cl.Id = did cl.ToStruct(core) cd, _ := json.Marshal(cl) wg := WriteLog{ diff --git a/tunas b/tunas index 6706bbd..09218c8 100755 Binary files a/tunas and b/tunas differ