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

Commit 0ec6857f authored by Jonas Haraldsson's avatar Jonas Haraldsson

limit to 7 days

parent fb613333
......@@ -215,8 +215,10 @@ class Library_page {
$query .= ' AND streamable=1';
}
/* BEGIN temporary limit query to one month in the past so we dont melt libre.fm server */
$query .= ' AND s.time > ' . (int) (time() - (3600 * 24 * 30));
/* BEGIN temporary limit query to 7 days in the past so we dont melt libre.fm server */
$mytime = (int) time();
$mytime = $mytime - ($mytime % 3600);
$query .= ' AND s.time > ' . ($mytime - (3600 * 24 * 7));
/* END temporary limit */
$query .= ' GROUP BY s.artist, image';
......
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