mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 17:17:12 +00:00
Fixed language filter in history stats.
This commit is contained in:
parent
c21e501ebe
commit
29fffd4e81
1 changed files with 6 additions and 2 deletions
|
@ -353,8 +353,12 @@ class Languages(Resource):
|
|||
def get(self):
|
||||
history = request.args.get('history')
|
||||
if history and history not in False_Keys:
|
||||
languages = list(TableHistory.select(TableHistory.language).dicts())
|
||||
languages += list(TableHistoryMovie.select(TableHistoryMovie.language).dicts())
|
||||
languages = list(TableHistory.select(TableHistory.language)
|
||||
.where(TableHistory.language != None)
|
||||
.dicts())
|
||||
languages += list(TableHistoryMovie.select(TableHistoryMovie.language)
|
||||
.where(TableHistoryMovie.language != None)
|
||||
.dicts())
|
||||
languages_set = set()
|
||||
for l in languages:
|
||||
if l not in None_Keys and l['language'] not in None_Keys:
|
||||
|
|
Loading…
Reference in a new issue