From cb930d5e23f68ac5f2127c51b2e36fad9c44c07a Mon Sep 17 00:00:00 2001 From: rembo10 Date: Sun, 19 Aug 2012 18:50:18 +0530 Subject: [PATCH] Fixed sqlite query when moving over Extras values from the old format to the new format --- headphones/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/__init__.py b/headphones/__init__.py index 2ed09fa8..0dfde064 100644 --- a/headphones/__init__.py +++ b/headphones/__init__.py @@ -902,7 +902,7 @@ def dbcheck(): artists = c.execute('SELECT ArtistID, IncludeExtras from artists').fetchall() for artist in artists: if artist['IncludeExtras']: - c.execute('INSERT into artists Extras="1,2,3,4,5,6,7,8" WHERE ArtistID=' + artist['ArtistID']) + c.execute('INSERT into artists (Extras) VALUES ("1,2,3,4,5,6,7,8") WHERE ArtistID=' + artist['ArtistID']) conn.commit() c.close()