mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
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…
Add table
Add a link
Reference in a new issue