mirror of
https://github.com/rembo10/headphones.git
synced 2026-04-27 23:39:32 +01:00
Fixed database error when trying to fetch an artist with quotes in the name
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user