mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Sort import database tables
This commit is contained in:
parent
0462121f69
commit
f2323b0dff
1 changed files with 2 additions and 1 deletions
|
@ -103,7 +103,8 @@ def import_tautulli_db(database=None, method=None, backup=False):
|
||||||
table_columns = {}
|
table_columns = {}
|
||||||
|
|
||||||
tables = db.select('SELECT name FROM import_db.sqlite_master '
|
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:
|
for table in tables:
|
||||||
table_name = table['name']
|
table_name = table['name']
|
||||||
if table_name == 'sessions':
|
if table_name == 'sessions':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue