From 85b5293e4085543e145a74a95c28bb1f2fb68876 Mon Sep 17 00:00:00 2001 From: ta Date: Wed, 31 Aug 2022 18:29:50 +0700 Subject: [PATCH] simplify infobox result --- searx/engines/wttr.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/searx/engines/wttr.py b/searx/engines/wttr.py index 60e91114f..d3da2748a 100644 --- a/searx/engines/wttr.py +++ b/searx/engines/wttr.py @@ -102,24 +102,21 @@ def response(resp): title = f"{location['areaName'][0]['value']}, {location['region'][0]['value']}" - infobox = f"

{gettext('Current condition')}

" + infobox = f"

{gettext('Current condition')}

" infobox += generate_condition_table(current, resp.search_params['language'], True) infobox += "
" for day in result["weather"]: - infobox += "
" - infobox += f"

{day['date']}

" + infobox += f"

{day['date']}

" - infobox += f"

{gettext('Overview')}

" infobox += "" infobox += generate_day_table(day) infobox += "
" - infobox += f"

{gettext('Forecast')}

" infobox += "" for time in forecast_indices.items():