myDB already available. Seems unneccesary to open another connection

This commit is contained in:
Bas Stottelaar
2014-09-14 22:54:45 +02:00
parent 3a03d940a1
commit 51dfeb8190

View File

@@ -184,8 +184,6 @@ def addArtisttoDB(artistid, extrasonly=False, forcefull=False):
# See if we need to grab extras. Artist specific extras take precedence
# over global option. Global options are set when adding a new artist
myDB = db.DBConnection()
try:
db_artist = myDB.action('SELECT IncludeExtras, Extras from artists WHERE ArtistID=?', [artistid]).fetchone()
includeExtras = db_artist['IncludeExtras']