random -> SEEDRAND (#3274)
This commit is contained in:
parent
8134edb5d1
commit
1ba390a72a
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ func (r sqlRepository) seededRandomSort() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r sqlRepository) resetSeededRandom(options []model.QueryOptions) {
|
func (r sqlRepository) resetSeededRandom(options []model.QueryOptions) {
|
||||||
if len(options) == 0 || options[0].Sort != "random" {
|
if len(options) == 0 || !strings.HasPrefix(options[0].Sort, "SEEDEDRAND(") {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue