attribute page: show only listed services

This commit is contained in:
pluja 2024-05-15 21:31:29 +02:00
parent 7994519e06
commit 1998a4e812
No known key found for this signature in database

View file

@ -154,7 +154,7 @@ func (s *Server) handleAttribute(c iris.Context) {
// Get all services that have this attribute // Get all services that have this attribute
services, err := database.Pb.GetServices( services, err := database.Pb.GetServices(
fmt.Sprintf("(attributes~'%v')", attributeId), fmt.Sprintf("(attributes~'%v') && (listed=true)", attributeId),
"-score", "-score",
) )
if err != nil { if err != nil {