Fix IntegrityError
This commit is contained in:
parent
6c851bd3a6
commit
db3be4cf09
1 changed files with 2 additions and 2 deletions
|
@ -267,9 +267,9 @@ class KodiDBMethods(object):
|
||||||
outdated_entries = []
|
outdated_entries = []
|
||||||
for entry_id in old_entries:
|
for entry_id in old_entries:
|
||||||
try:
|
try:
|
||||||
entry_ids.remove(entry_id)
|
entry_ids.remove(entry_id[0])
|
||||||
except ValueError:
|
except ValueError:
|
||||||
outdated_entries.append(entry_id)
|
outdated_entries.append(entry_id[0])
|
||||||
# Add all new entries that haven't already been added
|
# Add all new entries that haven't already been added
|
||||||
query = 'INSERT INTO %s VALUES (?, ?, ?)' % link_table
|
query = 'INSERT INTO %s VALUES (?, ?, ?)' % link_table
|
||||||
for entry_id in entry_ids:
|
for entry_id in entry_ids:
|
||||||
|
|
Loading…
Reference in a new issue