mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-13 17:07:34 +08:00
parent
89b7a06662
commit
13679ff301
1 changed files with 3 additions and 3 deletions
|
@ -54,8 +54,8 @@ func (u *ImageService) Page(req dto.SearchWithPage) (int64, interface{}, error)
|
||||||
return 0, nil, err
|
return 0, nil, err
|
||||||
}
|
}
|
||||||
if len(req.Info) != 0 {
|
if len(req.Info) != 0 {
|
||||||
lenth, count := len(list), 0
|
length, count := len(list), 0
|
||||||
for count < lenth {
|
for count < length {
|
||||||
hasTag := false
|
hasTag := false
|
||||||
for _, tag := range list[count].RepoTags {
|
for _, tag := range list[count].RepoTags {
|
||||||
if strings.Contains(tag, req.Info) {
|
if strings.Contains(tag, req.Info) {
|
||||||
|
@ -65,7 +65,7 @@ func (u *ImageService) Page(req dto.SearchWithPage) (int64, interface{}, error)
|
||||||
}
|
}
|
||||||
if !hasTag {
|
if !hasTag {
|
||||||
list = append(list[:count], list[(count+1):]...)
|
list = append(list[:count], list[(count+1):]...)
|
||||||
lenth--
|
length--
|
||||||
} else {
|
} else {
|
||||||
count++
|
count++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue