Added missing column to movies upgrade query.

pull/1443/head
morpheus65535 4 years ago
parent 6c1fdc57c4
commit d0c7c5d5e0

@ -1458,7 +1458,8 @@ def upgrade_subtitles():
fn.MAX(TableHistoryMovie.timestamp).alias('timestamp'), fn.MAX(TableHistoryMovie.timestamp).alias('timestamp'),
TableMovies.monitored, TableMovies.monitored,
TableMovies.tags, TableMovies.tags,
TableMovies.radarrId)\ TableMovies.radarrId,
TableMovies.title)\
.join(TableMovies, on=(TableHistoryMovie.radarrId == TableMovies.radarrId))\ .join(TableMovies, on=(TableHistoryMovie.radarrId == TableMovies.radarrId))\
.where(reduce(operator.and_, upgradable_movies_conditions))\ .where(reduce(operator.and_, upgradable_movies_conditions))\
.group_by(TableHistoryMovie.video_path, TableHistoryMovie.language)\ .group_by(TableHistoryMovie.video_path, TableHistoryMovie.language)\

Loading…
Cancel
Save