Fix iOrder of song_genre table being None instead of 0
This commit is contained in:
parent
a55c0c6ecb
commit
0400eec0c9
1 changed files with 4 additions and 3 deletions
|
@ -289,9 +289,10 @@ class KodiMusicDB(common.KodiDBBase):
|
|||
self.cursor.execute('''
|
||||
INSERT OR REPLACE INTO song_genre(
|
||||
idGenre,
|
||||
idSong)
|
||||
VALUES (?, ?)
|
||||
''', (genreid, kodiid))
|
||||
idSong,
|
||||
iOrder)
|
||||
VALUES (?, ?, ?)
|
||||
''', (genreid, kodiid, 0))
|
||||
|
||||
def add_song_id(self):
|
||||
self.cursor.execute('SELECT COALESCE(MAX(idSong),0) FROM song')
|
||||
|
|
Loading…
Reference in a new issue