Sort import database tables

This commit is contained in:
JonnyWong16 2020-05-24 00:13:17 -07:00
parent 0462121f69
commit f2323b0dff
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -103,7 +103,8 @@ def import_tautulli_db(database=None, method=None, backup=False):
table_columns = {}
tables = db.select('SELECT name FROM import_db.sqlite_master '
'WHERE type = "table" AND name NOT LIKE "sqlite_%"')
'WHERE type = "table" AND name NOT LIKE "sqlite_%"'
'ORDER BY name')
for table in tables:
table_name = table['name']
if table_name == 'sessions':