From 9ecb369e9e4855550ecb679ac31970931fffd829 Mon Sep 17 00:00:00 2001 From: renyhp Date: Wed, 20 May 2020 14:14:33 +0200 Subject: [PATCH] Fix #449 --- bin/proxy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/proxy.py b/bin/proxy.py index 49d2157..722a162 100644 --- a/bin/proxy.py +++ b/bin/proxy.py @@ -155,7 +155,10 @@ def add_translations(content, lang): return {} try: - weather_condition = d['data']['current_condition'][0]['weatherDesc'][0]['value'] + weather_condition = d['data']['current_condition' + ][0]['weatherDesc'][0]['value'].capitalize() + d['data']['current_condition'][0]['weatherDesc'][0]['value'] = \ + weather_condition if lang in languages_to_translate: d['data']['current_condition'][0]['lang_%s' % lang] = \ [{'value': translate(weather_condition, lang)}]