diff --git a/bazarr/subtitles/upgrade.py b/bazarr/subtitles/upgrade.py index 4a4279c87..1f6bcb077 100644 --- a/bazarr/subtitles/upgrade.py +++ b/bazarr/subtitles/upgrade.py @@ -37,7 +37,7 @@ def upgrade_subtitles(): if settings.general.getboolean('use_sonarr'): upgradable_episodes_conditions = [(TableHistory.action << query_actions), (TableHistory.timestamp > minimum_timestamp), - (TableHistory.score is not None)] + (TableHistory.score.is_null(False))] upgradable_episodes_conditions += get_exclusion_clause('series') upgradable_episodes = TableHistory.select(TableHistory.video_path, TableHistory.language,