From 65e8e56e4abe14817500fcad3f60bf1a859a5956 Mon Sep 17 00:00:00 2001 From: Ade Date: Fri, 4 Sep 2015 18:45:32 +1200 Subject: [PATCH] Show artist name rather than guid when deleting --- headphones/webserve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/webserve.py b/headphones/webserve.py index 22b13597..ecd26502 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -232,11 +232,11 @@ class WebInterface(object): raise cherrypy.HTTPRedirect("artistPage?ArtistID=%s" % ArtistID) def removeArtist(self, ArtistID): - logger.info(u"Deleting all traces of artist: " + ArtistID) myDB = db.DBConnection() namecheck = myDB.select('SELECT ArtistName from artists where ArtistID=?', [ArtistID]) for name in namecheck: artistname = name['ArtistName'] + logger.info(u"Deleting all traces of artist: " + artistname) myDB.action('DELETE from artists WHERE ArtistID=?', [ArtistID]) from headphones import cache