Speed up idPath look-up
This commit is contained in:
parent
3d837fcf33
commit
05c96dc1c6
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ class KodiDBMethods(object):
|
||||||
"""
|
"""
|
||||||
if path is None:
|
if path is None:
|
||||||
path = ''
|
path = ''
|
||||||
query = 'SELECT idPath FROM path WHERE strPath = ?'
|
query = 'SELECT idPath FROM path WHERE strPath = ? LIMIT 1'
|
||||||
self.cursor.execute(query, (path,))
|
self.cursor.execute(query, (path,))
|
||||||
try:
|
try:
|
||||||
pathid = self.cursor.fetchone()[0]
|
pathid = self.cursor.fetchone()[0]
|
||||||
|
|
Loading…
Reference in a new issue