From 38305c8f98eb06b95a3f4e77235e76b4dac13826 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Tue, 14 Aug 2012 12:41:18 +0530 Subject: [PATCH] Added Upcoming Albums to manage albums filter --- headphones/webserve.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/headphones/webserve.py b/headphones/webserve.py index d49f338d..4ca14417 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -231,7 +231,9 @@ class WebInterface(object): def manageAlbums(self, Status=None): myDB = db.DBConnection() - if Status: + if Status == "Upcoming": + albums = myDB.select("SELECT * from albums WHERE ReleaseDate > date('now')") + elif Status: albums = myDB.select('SELECT * from albums WHERE Status=?', [Status]) else: albums = myDB.select('SELECT * from albums')