Start Kodi ids at 0, not 1
This commit is contained in:
parent
db3be4cf09
commit
f0bbcb5086
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ class KodiDBMethods(object):
|
||||||
query = '''
|
query = '''
|
||||||
SELECT %s FROM %s WHERE name = ? COLLATE NOCASE LIMIT 1
|
SELECT %s FROM %s WHERE name = ? COLLATE NOCASE LIMIT 1
|
||||||
''' % (key, table)
|
''' % (key, table)
|
||||||
query_id = 'SELECT COALESCE(MAX(%s),0) FROM %s' % (key, table)
|
query_id = 'SELECT COALESCE(MAX(%s), -1) FROM %s' % (key, table)
|
||||||
query_new = ('INSERT INTO %s(%s, name) values(?, ?)'
|
query_new = ('INSERT INTO %s(%s, name) values(?, ?)'
|
||||||
% (table, key))
|
% (table, key))
|
||||||
entry_ids = []
|
entry_ids = []
|
||||||
|
|
Loading…
Reference in a new issue