mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Fix importing using the overwrite method
This commit is contained in:
parent
0741b4021c
commit
5f2a74893a
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ def import_tautulli_db(database=None, method=None, backup=False):
|
|||
db.action('DELETE FROM {table}'.format(table=table_name))
|
||||
db.action('DELETE FROM sqlite_sequence WHERE name = ?', [table_name])
|
||||
|
||||
if table_name in session_history_tables:
|
||||
if method == 'merge' and table_name in session_history_tables:
|
||||
from_db_name = 'main'
|
||||
from_table_name = table_name + '_copy'
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue