Bugzilla – Bug 2162
playtime statistics show the least often played tracks
Last modified: 2011-03-16 04:39:19 UTC
Hi, SlimServer SVN 4388 on Gentoo Linux with mysql backend. The statistics always show the *least* often played tracks. with --d_sql, I see the query to be "... ORDER BY tracks.playCount LIMIT 50" While the loop over the returned list is properly reversed, the LIMIT 50 causes the query to return only the least often played tracks. chaning the sorting order to "tracks.playCount DESC" and removing the "reverse" from the list processing should do the right thig but changing 'sortBy' => 'playCount DESC' in History.pm removed the "ORDER BY" clause completely from the query... Regards, Hakan Regards, Hakan
Fixed in subversion change 4423