Set default value of weatherScore to 100

Having a ressonable default value can avoid confusing result. 0 should not be default value of weatherScore

Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
This commit is contained in:
rick
2021-03-19 15:12:37 +08:00
parent 9c614bef98
commit 727dffffe2
3 changed files with 50 additions and 3 deletions

View File

@@ -122,13 +122,12 @@ func (p *Pipeline) ListPipelines() (*devops.PipelineList, error) {
return nil, err
}
pipelienList := devops.PipelineList{Total: count}
err = json.Unmarshal(res, &pipelienList.Items)
pipelienList, err := devops.UnmarshalPipeline(count, res)
if err != nil {
klog.Error(err)
return nil, err
}
return &pipelienList, err
return pipelienList, err
}
func (p *Pipeline) searchPipelineCount() (int, error) {