diff options
author | morpheus65535 <[email protected]> | 2021-06-11 23:48:38 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2021-06-11 23:48:38 -0400 |
commit | de4ff35e055c0d69c0bfbebb47733792c5196a27 (patch) | |
tree | a2021e8dd0a740726e652af24d473d4f48076319 | |
parent | a3d0e1d192cf5e0a86189cc7336847d882487c61 (diff) | |
download | bazarr-de4ff35e055c0d69c0bfbebb47733792c5196a27.tar.gz bazarr-de4ff35e055c0d69c0bfbebb47733792c5196a27.zip |
Fixed an issue with languages filter in history stats.v0.9.6-beta.24
-rw-r--r-- | bazarr/api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bazarr/api.py b/bazarr/api.py index 585168e67..fba2b739a 100644 --- a/bazarr/api.py +++ b/bazarr/api.py @@ -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)\ |