Fixed database error when trying to fetch an artist with quotes in the name

This commit is contained in:
Remy
2011-06-17 21:55:36 -07:00
parent 5ad3f47396
commit 49bd0c77d2

View File

@@ -36,7 +36,7 @@ class Headphones:
<th> </th>
</tr>''')
while i < len(results):
c.execute('''SELECT AlbumTitle, ReleaseDate, DateAdded, AlbumID from albums WHERE ArtistName="%s" order by ReleaseDate DESC''' % results[i][0])
c.execute('''SELECT AlbumTitle, ReleaseDate, DateAdded, AlbumID from albums WHERE ArtistName='%s' order by ReleaseDate DESC''' % results[i][0])
latestalbum = c.fetchall()
today = datetime.date.today()
if len(latestalbum) > 0: