Fixed rating query

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
master
Andrew DeMaria 8 years ago
parent 488a7d720b
commit 1f1ec26634
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 2
      libresonic-main/src/main/java/org/libresonic/player/dao/RatingDao.java

@ -59,7 +59,7 @@ public class RatingDao extends AbstractDao {
String sql = "select user_rating.path from user_rating, media_file " + String sql = "select user_rating.path from user_rating, media_file " +
"where user_rating.path=media_file.path and media_file.present and media_file.type = :type and media_file.folder in (:folders) " + "where user_rating.path=media_file.path and media_file.present and media_file.type = :type and media_file.folder in (:folders) " +
"group by user_rating.path " + "group by path " +
"order by avg(rating) desc limit :count offset :offset"; "order by avg(rating) desc limit :count offset :offset";
return namedQueryForStrings(sql, args); return namedQueryForStrings(sql, args);
} }

Loading…
Cancel
Save