1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 01:27:07 +00:00

Fixed subtitles upgrade job trying to upgrade null scored subtitles. #1909

This commit is contained in:
morpheus65535 2022-07-26 10:57:35 -04:00
parent 8826b87c65
commit 414900c24e

View file

@ -37,7 +37,7 @@ def upgrade_subtitles():
if settings.general.getboolean('use_sonarr'): if settings.general.getboolean('use_sonarr'):
upgradable_episodes_conditions = [(TableHistory.action << query_actions), upgradable_episodes_conditions = [(TableHistory.action << query_actions),
(TableHistory.timestamp > minimum_timestamp), (TableHistory.timestamp > minimum_timestamp),
(TableHistory.score is not None)] (TableHistory.score.is_null(False))]
upgradable_episodes_conditions += get_exclusion_clause('series') upgradable_episodes_conditions += get_exclusion_clause('series')
upgradable_episodes = TableHistory.select(TableHistory.video_path, upgradable_episodes = TableHistory.select(TableHistory.video_path,
TableHistory.language, TableHistory.language,