From 7f2402ecaf9d46a540e1d7d9ebb3e553224d512e Mon Sep 17 00:00:00 2001 From: rembo10 Date: Wed, 4 Jul 2012 12:35:03 +0530 Subject: [PATCH] Fixed bug where marking albums as skipped/downloaded in bulk resulted in them being marked as wanted --- headphones/webserve.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/headphones/webserve.py b/headphones/webserve.py index 40638337..9b23824b 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -149,11 +149,12 @@ class WebInterface(object): def markAlbums(self, ArtistID=None, action=None, **args): myDB = db.DBConnection() - if action == 'WantedNew' or 'WantedLossless': + if action == 'WantedNew' or action == 'WantedLossless': newaction = 'Wanted' else: newaction = action for mbid in args: + logger.info("Marking %s as %s" % (mbid, newaction)) controlValueDict = {'AlbumID': mbid} newValueDict = {'Status': newaction} myDB.upsert("albums", newValueDict, controlValueDict)