git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 87b1eafc authored by Jonas Haraldsson's avatar Jonas Haraldsson

add TODO

We need to clean up expired scrobble sessions somewhere in nixtape,
currently only done in gnukebox and that will eventually go away
parent bf58c8b4
......@@ -922,6 +922,7 @@ class Server {
* @return string Scrobble session ID
*/
static function getScrobbleSession($userid, $api_key = null, $expire_limit = 86400) {
//TODO Add code to remove expired sessions (this is currently only done in gnukebox)
global $adodb;
$query = 'SELECT sessionid FROM Scrobble_Sessions WHERE userid = ? AND expires > ?';
$params = array( (int) $userid, time());
......
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