Run refreshArtist in a separate thread

This commit is contained in:
rembo10
2012-07-20 18:48:38 +05:30
parent a2ddfb546d
commit 22685fdd95

View File

@@ -143,7 +143,7 @@ class WebInterface(object):
deleteArtist.exposed = True
def refreshArtist(self, ArtistID):
importer.addArtisttoDB(ArtistID)
threading.Thread(target=importer.addArtisttoDB, args=[ArtistID]).start()
raise cherrypy.HTTPRedirect("artistPage?ArtistID=%s" % ArtistID)
refreshArtist.exposed=True