summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2021-06-11 23:48:38 -0400
committermorpheus65535 <[email protected]>2021-06-11 23:48:38 -0400
commitde4ff35e055c0d69c0bfbebb47733792c5196a27 (patch)
treea2021e8dd0a740726e652af24d473d4f48076319
parenta3d0e1d192cf5e0a86189cc7336847d882487c61 (diff)
downloadbazarr-0.9.6-beta.24.tar.gz
bazarr-0.9.6-beta.24.zip
Fixed an issue with languages filter in history stats.v0.9.6-beta.24
-rw-r--r--bazarr/api.py3
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)\