mirror of
https://github.com/chubin/wttr.in
synced 2024-11-15 16:38:06 +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 = fmt.png.render_ansi(
|
||||||
output, options=parsed_query)
|
output, options=parsed_query)
|
||||||
else:
|
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']:
|
if parsed_query['html_output']:
|
||||||
output = add_buttons(output)
|
output = add_buttons(output)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue