Fix small UI bug (some artists showed that you have "null" tracks instead of 0)

This commit is contained in:
Patrick Speiser
2012-09-30 18:31:00 +02:00
parent 712a23c656
commit 350c99fb1b
+2
View File
@@ -488,6 +488,8 @@ class WebInterface(object):
"AlbumID":"",
}
if not row['HaveTracks']:
row['HaveTracks'] = 0
if artist['ReleaseDate'] and artist['LatestAlbum']:
row['ReleaseDate'] = artist['ReleaseDate']
row['LatestAlbum'] = artist['LatestAlbum']