Bring some more diversity in the radio mode when using tags

This commit is contained in:
emeric
2020-06-23 11:26:48 +02:00
parent bd84f41b07
commit a293273940
5 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -426,7 +426,7 @@ Release::getSimilarReleases(std::optional<std::size_t> offset, std::optional<std
.bind(self()->id())
.bind(self()->id())
.groupBy("r.id")
.orderBy("COUNT(*) DESC")
.orderBy("COUNT(*) DESC, RANDOM()")
.limit(count ? static_cast<int>(*count) : -1)
.offset(offset ? static_cast<int>(*offset) : -1)};