Skip to content

Commit

Permalink
refactor: update targets api
Browse files Browse the repository at this point in the history
  • Loading branch information
710leo committed Aug 26, 2024
1 parent 9c79233 commit f2ad0b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion front/statik/statik.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions models/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ func BuildTargetWhereWithQuery(query string) BuildTargetWhereOption {
arr := strings.Fields(query)
for i := 0; i < len(arr); i++ {
q := "%" + arr[i] + "%"
session = session.Where("ident like ? or note like ? or tags like ? "+
"or os like ?", q, q, q, q)
session = session.Where("ident like ? or note like ? or tags like ? or host_tags like ?"+
"or os like ?", q, q, q, q, q)
}
}
return session
Expand Down

0 comments on commit f2ad0b9

Please sign in to comment.