mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-15 16:19:28 +01:00
Run refreshArtist in a separate thread
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user