diff --git a/resources/lib/utils.py b/resources/lib/utils.py index e00f414c..f362a957 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -361,7 +361,7 @@ def reset(): for row in rows: tablename = row[0] if tablename != "version": - cursor.execute("DELETE FROM ?", (tablename,)) + cursor.execute("DELETE FROM %s" % tablename) connection.commit() cursor.close() @@ -374,7 +374,7 @@ def reset(): for row in rows: tablename = row[0] if tablename != "version": - cursor.execute("DELETE FROM ?", (tablename, )) + cursor.execute("DELETE FROM %s" % tablename) connection.commit() cursor.close() @@ -387,7 +387,7 @@ def reset(): for row in rows: tablename = row[0] if tablename != "version": - cursor.execute("DELETE FROM ?", (tablename, )) + cursor.execute("DELETE FROM %s" % tablename) cursor.execute('DROP table IF EXISTS plex') cursor.execute('DROP table IF EXISTS view') connection.commit() @@ -411,7 +411,7 @@ def reset(): for row in rows: tableName = row[0] if(tableName != "version"): - cursor.execute("DELETE FROM ?", (tableName, )) + cursor.execute("DELETE FROM %s" % tableName) connection.commit() cursor.close()