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

Commit acb7b359 authored by mattl's avatar mattl

limit to 10 for homepage/now playing

parent 05968de6
......@@ -60,7 +60,7 @@ if ($req_user) {
} elseif (!$res) {
$res = $mdb2->query("SELECT username, artist, track, time FROM Scrobbles ORDER BY time DESC LIMIT 100");
$res = $mdb2->query("SELECT username, artist, track, time FROM Scrobbles ORDER BY time DESC LIMIT 10");
echo "<h2>last 100 Gobbles</h2>";
......@@ -97,7 +97,7 @@ if ($req_user) {
<h2>Now Playing?</h2>
<?php
$res = $mdb2->query("SELECT username, artist, track FROM Now_Playing ORDER BY expires DESC LIMIT 100");
$res = $mdb2->query("SELECT username, artist, track FROM Now_Playing ORDER BY expires DESC LIMIT 10");
if(PEAR::isError($res)) {
die($res->getMessage());
}
......
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