mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-19 10:15:25 +00:00
Fixed get_exclusion_clause that do not have the required column due to a missing join.
This commit is contained in:
parent
c2333d1d26
commit
a4684feaba
1 changed files with 4 additions and 2 deletions
|
@ -1468,7 +1468,9 @@ class EpisodesWanted(Resource):
|
||||||
for item in data:
|
for item in data:
|
||||||
postprocessEpisode(item)
|
postprocessEpisode(item)
|
||||||
|
|
||||||
count = database.execute("SELECT COUNT(*) as count FROM table_episodes WHERE missing_subtitles != '[]'" +
|
count = database.execute("SELECT COUNT(*) as count, table_shows.tags, table_shows.seriesType FROM "
|
||||||
|
"table_episodes INNER JOIN table_shows on table_shows.sonarrSeriesId = "
|
||||||
|
"table_episodes.sonarrSeriesId WHERE missing_subtitles != '[]'" +
|
||||||
get_exclusion_clause('series'), only_one=True)['count']
|
get_exclusion_clause('series'), only_one=True)['count']
|
||||||
|
|
||||||
return jsonify(data=data, total=count)
|
return jsonify(data=data, total=count)
|
||||||
|
|
Loading…
Add table
Reference in a new issue