Fixed sqlite query when moving over Extras values from the old format to the new format

This commit is contained in:
rembo10
2012-08-19 18:50:18 +05:30
parent 6339dd8a87
commit cb930d5e23

View File

@@ -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()