renamed url parameter for one line mode $174: line instead of format (fixes #230)
This commit is contained in:
parent
d819233b5a
commit
efac9abc9e
2 changed files with 2 additions and 2 deletions
|
|
@ -120,7 +120,7 @@ def wttr_line(location, query):
|
||||||
in format `line_format`
|
in format `line_format`
|
||||||
"""
|
"""
|
||||||
|
|
||||||
format_line = query.get('format', '')
|
format_line = query.get('line', '')
|
||||||
|
|
||||||
if format_line in PRECONFIGURED_FORMAT:
|
if format_line in PRECONFIGURED_FORMAT:
|
||||||
format_line = PRECONFIGURED_FORMAT[format_line]
|
format_line = PRECONFIGURED_FORMAT[format_line]
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,7 @@ def wttr(location, request):
|
||||||
|
|
||||||
# We are ready to return the answer
|
# We are ready to return the answer
|
||||||
try:
|
try:
|
||||||
if 'format' in query:
|
if 'line' in query:
|
||||||
return wttr_line(location, query)
|
return wttr_line(location, query)
|
||||||
|
|
||||||
if png_filename:
|
if png_filename:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue