Skip importing temporary sessions table
This commit is contained in:
@@ -87,6 +87,10 @@ def import_tautulli_db(database=None, method=None, backup=True):
|
|||||||
'WHERE type = "table" AND name NOT LIKE "sqlite_%"')
|
'WHERE type = "table" AND name NOT LIKE "sqlite_%"')
|
||||||
for table in tables:
|
for table in tables:
|
||||||
table_name = table['name']
|
table_name = table['name']
|
||||||
|
if table_name == 'sessions':
|
||||||
|
# Skip temporary sessions table
|
||||||
|
continue
|
||||||
|
|
||||||
logger.info("Tautulli Database :: Importing database table '%s'", table_name)
|
logger.info("Tautulli Database :: Importing database table '%s'", table_name)
|
||||||
|
|
||||||
if method == 'overwrite':
|
if method == 'overwrite':
|
||||||
|
Reference in New Issue
Block a user