From 60bf35c1ef2b619e1422cb334b09bdb3ce1a5701 Mon Sep 17 00:00:00 2001 From: kSotin <57791410+kSotin@users.noreply.github.com> Date: Fri, 22 Jan 2021 23:36:23 +0800 Subject: [PATCH] fix database execution --- bazarr/api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bazarr/api.py b/bazarr/api.py index 40a510602..30d7ceee2 100644 --- a/bazarr/api.py +++ b/bazarr/api.py @@ -1633,7 +1633,7 @@ class WantedSeries(Resource): "table_episodes.failedAttempts, table_shows.seriesType FROM table_episodes INNER JOIN " "table_shows on table_shows.sonarrSeriesId = table_episodes.sonarrSeriesId WHERE " "table_episodes.missing_subtitles != '[]'" + get_exclusion_clause('series') + - " ORDER BY table_episodes._rowid_ DESC LIMIT " + length + " OFFSET " + start) + " ORDER BY table_episodes._rowid_ DESC LIMIT ? OFFSET ?", (length, start)) for item in data: # Parse missing subtitles @@ -1676,8 +1676,7 @@ class WantedMovies(Resource): row_count = len(data_count) data = database.execute("SELECT title, missing_subtitles, radarrId, path, sceneName, " "failedAttempts, tags, monitored FROM table_movies WHERE missing_subtitles != '[]'" + - get_exclusion_clause('movie') + " ORDER BY _rowid_ DESC LIMIT " + length + " OFFSET " + - start) + get_exclusion_clause('movie') + " ORDER BY _rowid_ DESC LIMIT ? OFFSET ?", (length, start)) for item in data: # Parse missing subtitles