From b8481129cf1a7083f72360697e744fb9725032af Mon Sep 17 00:00:00 2001 From: shaun Date: Sun, 29 Mar 2015 21:05:09 +1100 Subject: [PATCH] remove redundant add --- resources/lib/WriteKodiDB.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/WriteKodiDB.py b/resources/lib/WriteKodiDB.py index a3e4b250..c2860bdd 100644 --- a/resources/lib/WriteKodiDB.py +++ b/resources/lib/WriteKodiDB.py @@ -894,13 +894,13 @@ class WriteKodiDB(): pathid = pathid + 1 pathsql="insert into path(idPath, strPath) values(?, ?)" cursor.execute(pathsql, (pathid,path)) - + ''' cursor.execute("select coalesce(max(idPath),0) as pathid from path") pathid = cursor.fetchone()[0] pathid = pathid + 1 pathsql="insert into path(idPath, strPath) values(?, ?)" cursor.execute(pathsql, (pathid,path)) - + ''' if fileType == "episode": cursor.execute("SELECT idFile as fileidid FROM episode WHERE idEpisode = ?",(id,)) result = cursor.fetchone()