Fix OperationalError upon database reset
This commit is contained in:
parent
aba7e3a977
commit
e96ceaaf19
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ def reset():
|
||||||
tablename = row[0]
|
tablename = row[0]
|
||||||
if tablename != "version":
|
if tablename != "version":
|
||||||
cursor.execute("DELETE FROM " + tablename)
|
cursor.execute("DELETE FROM " + tablename)
|
||||||
cursor.execute('DROP table IF EXISTS emby')
|
cursor.execute('DROP table IF EXISTS plex')
|
||||||
cursor.execute('DROP table IF EXISTS view')
|
cursor.execute('DROP table IF EXISTS view')
|
||||||
connection.commit()
|
connection.commit()
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
|
Loading…
Add table
Reference in a new issue