Skip to content

Commit

Permalink
fix: fix group list not correct (close lobehub#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Jun 12, 2023
1 parent 47ca449 commit 955d5f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/group-ratio.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func GroupRatio2JSONString() string {
}

func UpdateGroupRatioByJSONString(jsonStr string) error {
GroupRatio = make(map[string]float64)
return json.Unmarshal([]byte(jsonStr), &GroupRatio)
}

Expand Down
1 change: 1 addition & 0 deletions common/model-ratio.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func ModelRatio2JSONString() string {
}

func UpdateModelRatioByJSONString(jsonStr string) error {
ModelRatio = make(map[string]float64)
return json.Unmarshal([]byte(jsonStr), &ModelRatio)
}

Expand Down

0 comments on commit 955d5f8

Please sign in to comment.