mirror of
https://github.com/chubin/wttr.in
synced 2024-11-15 08:37:12 +00:00
do not add followme to json output
This commit is contained in:
parent
26a5fa533a
commit
156ab97cf2
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue