From 39eb6570124794fcd3332c257fe679d1d68c5c14 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Tue, 19 May 2020 22:41:49 -0700 Subject: [PATCH] Fix typo when importing session_history table names --- plexpy/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/database.py b/plexpy/database.py index 0bfafa61..c2731ab4 100644 --- a/plexpy/database.py +++ b/plexpy/database.py @@ -129,7 +129,7 @@ def import_tautulli_db(database=None, method=None, backup=False): insert_columns = ', '.join(import_columns) table_columns[table_name] = insert_columns - if table == 'session_history': + if table_name == 'session_history': session_history_columns = import_columns # Insert the data with ignore instead of replace to be safe