From 5b32c6ed41b4e5c4cac802821702117be2750633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 20 Mar 2019 15:16:33 -0400 Subject: [PATCH] Continuing development. --- bazarr/main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index 9a5c2b042..e099af273 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -982,13 +982,13 @@ def historyseries(): upgradable_episodes = c.execute("""SELECT video_path, MAX(timestamp), score FROM table_history - WHERE action IN (""" + ','.join(map(str, query_actions)) + """) AND timestamp > - ? AND score is not null + WHERE action IN (""" + ','.join(map(str, query_actions)) + """) AND + 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: - if upgradable_episode[2] < "360": + if int(upgradable_episode[2]) < 360: upgradable_episodes_not_perfect.append(upgradable_episode) c.close() @@ -1050,13 +1050,13 @@ def historymovies(): upgradable_movies = c.execute("""SELECT video_path, MAX(timestamp), score FROM table_history_movie - WHERE action IN (""" + ','.join(map(str, query_actions)) + """) AND timestamp - > ? AND score is not null + WHERE action IN (""" + ','.join(map(str, query_actions)) + """) AND + timestamp > ? AND score is not null GROUP BY video_path, language""", (minimum_timestamp,)).fetchall() upgradable_movies_not_perfect = [] for upgradable_movie in upgradable_movies: - if upgradable_movie[2] < "120": + if int(upgradable_movie[2]) < 120: upgradable_movies_not_perfect.append(upgradable_movie) c.close()