Merge branch 'master' into docs-5.1

This commit is contained in:
Marcus Efraimsson 2018-04-13 11:36:54 +02:00
commit f2c5417ee4
No known key found for this signature in database
GPG Key ID: EBFE0FB04612DD4A

View File

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