remove redundant add

This commit is contained in:
shaun 2015-03-29 21:05:09 +11:00
parent 6dbdb88fa7
commit b8481129cf
1 changed files with 2 additions and 2 deletions

View File

@ -894,13 +894,13 @@ class WriteKodiDB():
pathid = pathid + 1 pathid = pathid + 1
pathsql="insert into path(idPath, strPath) values(?, ?)" pathsql="insert into path(idPath, strPath) values(?, ?)"
cursor.execute(pathsql, (pathid,path)) cursor.execute(pathsql, (pathid,path))
'''
cursor.execute("select coalesce(max(idPath),0) as pathid from path") cursor.execute("select coalesce(max(idPath),0) as pathid from path")
pathid = cursor.fetchone()[0] pathid = cursor.fetchone()[0]
pathid = pathid + 1 pathid = pathid + 1
pathsql="insert into path(idPath, strPath) values(?, ?)" pathsql="insert into path(idPath, strPath) values(?, ?)"
cursor.execute(pathsql, (pathid,path)) cursor.execute(pathsql, (pathid,path))
'''
if fileType == "episode": if fileType == "episode":
cursor.execute("SELECT idFile as fileidid FROM episode WHERE idEpisode = ?",(id,)) cursor.execute("SELECT idFile as fileidid FROM episode WHERE idEpisode = ?",(id,))
result = cursor.fetchone() result = cursor.fetchone()