Browse Source

change annotation limit from 10 to 100

flopp999 7 năm trước cách đây
mục cha
commit
74f570fdf4

+ 1 - 1
pkg/services/sqlstore/annotation.go

@@ -202,7 +202,7 @@ func (r *SqlAnnotationRepo) Find(query *annotations.ItemQuery) ([]*annotations.I
 	}
 	}
 
 
 	if query.Limit == 0 {
 	if query.Limit == 0 {
-		query.Limit = 10
+		query.Limit = 100
 	}
 	}
 
 
 	sql.WriteString(fmt.Sprintf(" ORDER BY epoch DESC LIMIT %v", query.Limit))
 	sql.WriteString(fmt.Sprintf(" ORDER BY epoch DESC LIMIT %v", query.Limit))