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

This commit is contained in:
Igor Chubin 2018-10-28 15:28:50 +01:00
parent d819233b5a
commit efac9abc9e
2 changed files with 2 additions and 2 deletions

View file

@ -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]

View file

@ -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: