mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-20 16:03:59 +01:00
fixed issue with database being created without tables
This commit is contained in:
+2
-3
@@ -30,9 +30,8 @@ else:
|
||||
|
||||
def searchNZB(albumid=None):
|
||||
|
||||
if os.path.exists(database):
|
||||
conn=sqlite3.connect(database)
|
||||
c=conn.cursor()
|
||||
conn=sqlite3.connect(database)
|
||||
c=conn.cursor()
|
||||
|
||||
if albumid:
|
||||
c.execute('SELECT ArtistName, AlbumTitle, AlbumID, ReleaseDate from albums WHERE Status="Wanted" AND AlbumID="%s"' % albumid)
|
||||
|
||||
Reference in New Issue
Block a user