Fixed bug where marking albums as skipped/downloaded in bulk resulted in them being marked as wanted

This commit is contained in:
rembo10
2012-07-04 12:35:03 +05:30
parent df45255a44
commit 7f2402ecaf

View File

@@ -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)