|
|
@ -982,13 +982,13 @@ def historyseries():
|
|
|
|
|
|
|
|
|
|
|
|
upgradable_episodes = c.execute("""SELECT video_path, MAX(timestamp), score
|
|
|
|
upgradable_episodes = c.execute("""SELECT video_path, MAX(timestamp), score
|
|
|
|
FROM table_history
|
|
|
|
FROM table_history
|
|
|
|
WHERE action IN (""" + ','.join(map(str, query_actions)) + """) AND timestamp >
|
|
|
|
WHERE action IN (""" + ','.join(map(str, query_actions)) + """) AND
|
|
|
|
? AND score is not null
|
|
|
|
timestamp > ? AND score is not null
|
|
|
|
GROUP BY table_history.video_path, table_history.language""",
|
|
|
|
GROUP BY table_history.video_path, table_history.language""",
|
|
|
|
(minimum_timestamp,)).fetchall()
|
|
|
|
(minimum_timestamp,)).fetchall()
|
|
|
|
upgradable_episodes_not_perfect = []
|
|
|
|
upgradable_episodes_not_perfect = []
|
|
|
|
for upgradable_episode in upgradable_episodes:
|
|
|
|
for upgradable_episode in upgradable_episodes:
|
|
|
|
if upgradable_episode[2] < "360":
|
|
|
|
if int(upgradable_episode[2]) < 360:
|
|
|
|
upgradable_episodes_not_perfect.append(upgradable_episode)
|
|
|
|
upgradable_episodes_not_perfect.append(upgradable_episode)
|
|
|
|
|
|
|
|
|
|
|
|
c.close()
|
|
|
|
c.close()
|
|
|
@ -1050,13 +1050,13 @@ def historymovies():
|
|
|
|
|
|
|
|
|
|
|
|
upgradable_movies = c.execute("""SELECT video_path, MAX(timestamp), score
|
|
|
|
upgradable_movies = c.execute("""SELECT video_path, MAX(timestamp), score
|
|
|
|
FROM table_history_movie
|
|
|
|
FROM table_history_movie
|
|
|
|
WHERE action IN (""" + ','.join(map(str, query_actions)) + """) AND timestamp
|
|
|
|
WHERE action IN (""" + ','.join(map(str, query_actions)) + """) AND
|
|
|
|
> ? AND score is not null
|
|
|
|
timestamp > ? AND score is not null
|
|
|
|
GROUP BY video_path, language""",
|
|
|
|
GROUP BY video_path, language""",
|
|
|
|
(minimum_timestamp,)).fetchall()
|
|
|
|
(minimum_timestamp,)).fetchall()
|
|
|
|
upgradable_movies_not_perfect = []
|
|
|
|
upgradable_movies_not_perfect = []
|
|
|
|
for upgradable_movie in upgradable_movies:
|
|
|
|
for upgradable_movie in upgradable_movies:
|
|
|
|
if upgradable_movie[2] < "120":
|
|
|
|
if int(upgradable_movie[2]) < 120:
|
|
|
|
upgradable_movies_not_perfect.append(upgradable_movie)
|
|
|
|
upgradable_movies_not_perfect.append(upgradable_movie)
|
|
|
|
|
|
|
|
|
|
|
|
c.close()
|
|
|
|
c.close()
|
|
|
|