use original location for /Moon (fixes #337)
This commit is contained in:
parent
50dff37040
commit
509e87fa86
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ def wttr(location, request):
|
||||||
# Trying to disable github caching
|
# Trying to disable github caching
|
||||||
return response
|
return response
|
||||||
|
|
||||||
if location.lower() == 'moon' or location.lower().startswith('moon@'):
|
if orig_location.lower() == 'moon' or orig_location.lower().startswith('moon@'):
|
||||||
output = get_moon(location, html=html_output, lang=lang, query=query)
|
output = get_moon(location, html=html_output, lang=lang, query=query)
|
||||||
else:
|
else:
|
||||||
output = get_wetter(location, ip_addr,
|
output = get_wetter(location, ip_addr,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue