From 350c99fb1b1698dba8c978336819f15b5a50f9f8 Mon Sep 17 00:00:00 2001 From: Patrick Speiser Date: Sun, 30 Sep 2012 18:31:00 +0200 Subject: [PATCH] Fix small UI bug (some artists showed that you have "null" tracks instead of 0) --- headphones/webserve.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/headphones/webserve.py b/headphones/webserve.py index 9e589ba4..4696b3c1 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -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']