diff --git a/lib/wttr.py b/lib/wttr.py index 1cbde25..d369d4f 100644 --- a/lib/wttr.py +++ b/lib/wttr.py @@ -107,9 +107,9 @@ def get_wetter(location, ip, html=False, lang=None, query=None, location_name=No if query['days'] == '2': stdout = "\n".join(stdout.splitlines()[:27]) + "\n" + first = stdout.splitlines()[0].decode('utf-8') + rest = stdout.splitlines()[1:] if query.get('no-caption', False): - first = stdout.splitlines()[0].decode('utf-8') - rest = stdout.splitlines()[1:] separator = None if ':' in first: @@ -150,7 +150,9 @@ def get_wetter(location, ip, html=False, lang=None, query=None, location_name=No if query.get('inverted_colors'): stdout = stdout.replace('
', '') - + + title = "