mirror of https://github.com/morpheus65535/bazarr
Fixed an issue with languages filter in history stats.
This commit is contained in:
parent
a3d0e1d192
commit
de4ff35e05
|
@ -371,11 +371,12 @@ class Languages(Resource):
|
|||
if not any(x['code2'] == code2 for x in languages_dicts):
|
||||
languages_dicts.append({
|
||||
'code2': code2,
|
||||
'name': language_from_alpha2(language),
|
||||
'name': language_from_alpha2(code2),
|
||||
# Compatibility: Use false temporarily
|
||||
'enabled': False
|
||||
})
|
||||
return jsonify(sorted(languages_dicts, key=itemgetter('name')))
|
||||
|
||||
result = TableSettingsLanguages.select(TableSettingsLanguages.name,
|
||||
TableSettingsLanguages.code2,
|
||||
TableSettingsLanguages.enabled)\
|
||||
|
|
Loading…
Reference in New Issue