We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit fab097e9 authored by jurgbohn's avatar jurgbohn

Limit user.gettoptracks to 20 tracks.

parent 6c13b721
......@@ -70,7 +70,7 @@ class UserXML {
FROM Track, Scrobbles,Artist
WHERE Scrobbles.username =" . $mdb2->quote($username, 'text') . "
AND Scrobbles.track = Track.name AND Scrobbles.time > " . $timestamp . " AND Track.artist = Artist.name
GROUP BY Track.name ORDER BY freq DESC");
GROUP BY Track.name ORDER BY freq DESC LIMIT 20");
if (PEAR::isError($res) || !$res->numRows()) {
return(XML::error("failed", "7", "Invalid resource specified"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment