mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-12 17:13:43 +08:00
fix: fix group list not correct (close #147)
This commit is contained in:
@@ -17,6 +17,7 @@ func GroupRatio2JSONString() string {
|
||||
}
|
||||
|
||||
func UpdateGroupRatioByJSONString(jsonStr string) error {
|
||||
GroupRatio = make(map[string]float64)
|
||||
return json.Unmarshal([]byte(jsonStr), &GroupRatio)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user