renamed url parameter for one line mode $174: line instead of format (fixes #230)

pull/234/head
Igor Chubin 6 years ago
parent d819233b5a
commit efac9abc9e

@ -120,7 +120,7 @@ def wttr_line(location, query):
in format `line_format`
"""
format_line = query.get('format', '')
format_line = query.get('line', '')
if format_line in PRECONFIGURED_FORMAT:
format_line = PRECONFIGURED_FORMAT[format_line]

@ -183,7 +183,7 @@ def wttr(location, request):
# We are ready to return the answer
try:
if 'format' in query:
if 'line' in query:
return wttr_line(location, query)
if png_filename:

Loading…
Cancel
Save