Fixed issues with single & double quotes in artist name

This commit is contained in:
Remy
2011-06-18 07:48:43 -07:00
parent 414910e773
commit d2ca837b15

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 ArtistID='%s' order by ReleaseDate DESC''' % results[i][1])
latestalbum = c.fetchall()
today = datetime.date.today()
if len(latestalbum) > 0: