From 7fc145179cc3569df05fd48970c85979181d441c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 17 Apr 2019 19:51:27 -0400 Subject: [PATCH] Fix for history when upgrade subtitles is disable. --- bazarr/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index 69dbb79ee..63cc36426 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -971,6 +971,7 @@ def historyseries(): data = c.fetchall() upgradable_episodes = [] + upgradable_episodes_not_perfect = [] if settings.general.getboolean('upgrade_subs'): days_to_upgrade_subs = settings.general.days_to_upgrade_subs minimum_timestamp = ((datetime.now() - timedelta(days=int(days_to_upgrade_subs))) - @@ -987,7 +988,6 @@ def historyseries(): timestamp > ? AND score is not null GROUP BY table_history.video_path, table_history.language""", (minimum_timestamp,)).fetchall() - upgradable_episodes_not_perfect = [] for upgradable_episode in upgradable_episodes: try: int(upgradable_episode[2]) @@ -1044,6 +1044,7 @@ def historymovies(): data = c.fetchall() upgradable_movies = [] + upgradable_movies_not_perfect = [] if settings.general.getboolean('upgrade_subs'): days_to_upgrade_subs = settings.general.days_to_upgrade_subs minimum_timestamp = ((datetime.now() - timedelta(days=int(days_to_upgrade_subs))) - @@ -1060,7 +1061,6 @@ def historymovies(): timestamp > ? AND score is not null GROUP BY video_path, language""", (minimum_timestamp,)).fetchall() - upgradable_movies_not_perfect = [] for upgradable_movie in upgradable_movies: try: int(upgradable_movie[2])