/Moon minifix
This commit is contained in:
parent
222ea7c65c
commit
d0d152b10c
1 changed files with 2 additions and 2 deletions
|
|
@ -267,8 +267,8 @@ def wttr(location, request):
|
||||||
# Trying to disable github caching
|
# Trying to disable github caching
|
||||||
return response
|
return response
|
||||||
|
|
||||||
if orig_location.lower() == 'moon' or orig_location.lower().startswith('moon@'):
|
if orig_location and (orig_location.lower() == 'moon' or orig_location.lower().startswith('moon@')):
|
||||||
output = get_moon(location, html=html_output, lang=lang, query=query)
|
output = get_moon(orig_location, html=html_output, lang=lang, query=query)
|
||||||
else:
|
else:
|
||||||
output = get_wetter(location, ip_addr,
|
output = get_wetter(location, ip_addr,
|
||||||
html=html_output,
|
html=html_output,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue