sort reverse

This commit is contained in:
pluja 2024-02-13 10:42:28 +01:00
parent f13596e6ac
commit 5ef0ac77da

View File

@ -152,7 +152,7 @@ func (s *Server) handleAttribute(c iris.Context) {
// Get all services that have this attribute
services, err := database.Pb.GetServices(
fmt.Sprintf("(attributes~'%v')", attributeId),
"score",
"-score",
)
if err != nil {
log.Error().Err(err).Msgf("Could not get services with attribute %v from database", attributeId)