mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-11 01:23:38 +08:00
Continuing development.
This commit is contained in:
parent
5b32c6ed41
commit
1e62365b9a
1 changed files with 14 additions and 4 deletions
|
@ -988,8 +988,13 @@ def historyseries():
|
|||
(minimum_timestamp,)).fetchall()
|
||||
upgradable_episodes_not_perfect = []
|
||||
for upgradable_episode in upgradable_episodes:
|
||||
if int(upgradable_episode[2]) < 360:
|
||||
upgradable_episodes_not_perfect.append(upgradable_episode)
|
||||
try:
|
||||
int(upgradable_episode[2])
|
||||
except ValueError:
|
||||
pass
|
||||
else:
|
||||
if int(upgradable_episode[2]) < 360:
|
||||
upgradable_episodes_not_perfect.append(upgradable_episode)
|
||||
|
||||
c.close()
|
||||
|
||||
|
@ -1056,8 +1061,13 @@ def historymovies():
|
|||
(minimum_timestamp,)).fetchall()
|
||||
upgradable_movies_not_perfect = []
|
||||
for upgradable_movie in upgradable_movies:
|
||||
if int(upgradable_movie[2]) < 120:
|
||||
upgradable_movies_not_perfect.append(upgradable_movie)
|
||||
try:
|
||||
int(upgradable_movie[2])
|
||||
except ValueError:
|
||||
pass
|
||||
else:
|
||||
if int(upgradable_movie[2]) < 120:
|
||||
upgradable_movies_not_perfect.append(upgradable_movie)
|
||||
|
||||
c.close()
|
||||
data = reversed(sorted(data, key=operator.itemgetter(2)))
|
||||
|
|
Loading…
Reference in a new issue