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

Commit 199d7ce7 authored by mattl's avatar mattl

added order by time desc query back, now we have the server going faster

parent da390d37
......@@ -53,8 +53,7 @@ class Server {
$res = $adodb->CacheGetAll(60,
'SELECT *
FROM Scrobbles
WHERE userid = ' . ($userid) . '
LIMIT ' . (int)($number));
WHERE userid = ' . ($userid) . ' ORDER BY time DESC LIMIT ' . (int)($number));
/**
......@@ -90,7 +89,7 @@ class Server {
} else {
$res = $adodb->CacheGetAll(60,
'SELECT *
FROM Scrobbles
FROM Scrobbles ORDER BY time DESC
LIMIT ' . (int)($number));
......
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