Fix importing using the overwrite method

This commit is contained in:
JonnyWong16 2020-05-24 00:18:10 -07:00
parent 0741b4021c
commit 5f2a74893a
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -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 {table}'.format(table=table_name))
db.action('DELETE FROM sqlite_sequence WHERE name = ?', [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_db_name = 'main'
from_table_name = table_name + '_copy' from_table_name = table_name + '_copy'
else: else: