diff options
| author | ta <alt3753.7@gmail.com> | 2022-08-31 18:29:50 +0700 |
|---|---|---|
| committer | ta <alt3753.7@gmail.com> | 2022-08-31 18:29:50 +0700 |
| commit | 85b5293e4085543e145a74a95c28bb1f2fb68876 (patch) | |
| tree | 856d6d1ab7a1a67ff2c87abdfc35c084b3d12ed0 /searx/engines | |
| parent | e64cca8c3f5833cb88556d0ceabd0d17cac313e0 (diff) | |
simplify infobox result
Diffstat (limited to 'searx/engines')
| -rw-r--r-- | searx/engines/wttr.py | 7 |
1 files 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"<h2>{gettext('Current condition')}</h2><table><tbody>" + infobox = f"<h3>{gettext('Current condition')}</h3><table><tbody>" infobox += generate_condition_table(current, resp.search_params['language'], True) infobox += "</tbody></table>" for day in result["weather"]: - infobox += "<hr />" - infobox += f"<h2>{day['date']}</h2>" + infobox += f"<h3>{day['date']}</h3>" - infobox += f"<h3>{gettext('Overview')}</h3>" infobox += "<table><tbody>" infobox += generate_day_table(day) infobox += "</tbody></table>" - infobox += f"<h3>{gettext('Forecast')}</h3>" infobox += "<table><tbody>" for time in forecast_indices.items(): |