assure to drop emby table on reset

This commit is contained in:
im85288 2015-09-16 09:52:48 +01:00
parent 5dfcf2f22d
commit 3a392ce27f

View file

@ -383,6 +383,7 @@ def reset():
tableName = row[0]
if(tableName != "version"):
cursor.execute("DELETE FROM " + tableName)
cursor.execute("DROP TABLE emby")
connection.commit()
cursor.close()
@ -397,6 +398,7 @@ def reset():
tableName = row[0]
if(tableName != "version"):
cursor.execute("DELETE FROM " + tableName)
cursor.execute("DROP TABLE emby")
connection.commit()
cursor.close()