From 51dfeb819052c60f193096b520160af39dffe99f Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Sun, 14 Sep 2014 22:54:45 +0200 Subject: [PATCH] myDB already available. Seems unneccesary to open another connection --- headphones/importer.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/headphones/importer.py b/headphones/importer.py index 59cba8b8..3954366e 100644 --- a/headphones/importer.py +++ b/headphones/importer.py @@ -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']