From 156ab97cf2eb71a8fd95241055f0816c0ab21de2 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Mon, 27 Apr 2020 19:03:58 +0200 Subject: [PATCH] do not add followme to json output --- lib/wttr_srv.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/wttr_srv.py b/lib/wttr_srv.py index ac41f53..62541ad 100644 --- a/lib/wttr_srv.py +++ b/lib/wttr_srv.py @@ -213,7 +213,9 @@ def _response(parsed_query, query, fast_mode=False): output = fmt.png.render_ansi( output, options=parsed_query) else: - if query.get('days', '3') != '0' and not query.get('no-follow-line'): + if query.get('days', '3') != '0' \ + and not query.get('no-follow-line') \ + and ((parsed_query.get("view") or "v2")[:2] in ["v2"]): if parsed_query['html_output']: output = add_buttons(output) else: