Skip importing temporary sessions table

This commit is contained in:
JonnyWong16 2020-04-30 22:16:40 -07:00
parent 33d5aca6d4
commit e698bcb375
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

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